Ultralight C++ API 1.4.0
|
#include <Ultralight/GamepadEvent.h>
Event representing a change in gamepad button state (eg, pressing a button on a gamepad).
Public Attributes | |
uint32_t | index |
The index of the gamepad, this should match the value previously set in Renderer::SetGamepadDetails. | |
uint32_t | button_index |
The index of the button whose value has changed. | |
double | value |
The new value of the button. | |
uint32_t button_index |
The index of the button whose value has changed.
This value should be in the range previously set in Renderer::SetGamepadDetails.
uint32_t index |
The index of the gamepad, this should match the value previously set in Renderer::SetGamepadDetails.
double value |
The new value of the button.
This value should be normalized to the range [-1.0, 1.0], with any value greater than 0.0 to be considered "pressed".