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

#include <Ultralight/GamepadEvent.h>

Details

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

See also
Renderer::FireGamepadAxisEvent

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 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.

◆ index

uint32_t ultralight::GamepadAxisEvent::index

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

◆ value

double ultralight::GamepadAxisEvent::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: