Ultralight C++ API 1.3.0
|
#include <Ultralight/GamepadEvent.h>
Event representing a change in gamepad axis state (eg, pressing a stick in a certain direction).
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. | |
uint32_t ultralight::GamepadAxisEvent::axis_index |
The index of the axis whose value has changed.
This value should be in the range previously set in Renderer::SetGamepadDetails.
uint32_t ultralight::GamepadAxisEvent::index |
The index of the gamepad, this should match the value previously set in Renderer::SetGamepadDetails.
double ultralight::GamepadAxisEvent::value |
The new value of the axis.
This value should be normalized to the range [-1.0, 1.0].