Loading...
Searching...
No Matches
GamepadButtonEvent

#include <Ultralight/GamepadEvent.h>

Overview

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

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

◆ value

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


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