Ultralight C++ API 1.3.0
Loading...
Searching...
No Matches
ultralight::GamepadButtonEvent Class Reference

#include <Ultralight/GamepadEvent.h>

Details

Event representing a change in gamepad button state (eg, pressing a button on a gamepad).

See also
Renderer::FireGamepadButtonEvent

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.
 

Member Data Documentation

◆ button_index

uint32_t ultralight::GamepadButtonEvent::button_index

The index of the button whose value has changed.

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

◆ index

uint32_t ultralight::GamepadButtonEvent::index

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

◆ value

double ultralight::GamepadButtonEvent::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".


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