All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GamepadAxisEvent

Event representing a change in gamepad axis state (eg, pressing a stick in a certain direction).

Overview

Public Attributes

uint32_t index
 The index of the gamepad, this should match the value previously set in Renderer::SetGamepadDetails.
 
uint32_t axis_index
 The index of the axis whose value has changed.
 
double value
 The new value of the axis.
 

Member Data Documentation

◆ axis_index

uint32_t axis_index

The index of the axis whose value has changed.

This value should be in the range previously set in Renderer::SetGamepadDetails.

◆ index

uint32_t index

The index of the gamepad, this should match the value previously set in Renderer::SetGamepadDetails.

◆ value

double value

The new value of the axis.

This value should be normalized to the range [-1.0, 1.0].


The documentation for this class was generated from the following file: