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

#include <Ultralight/GamepadEvent.h>

Details

Event representing a change in gamepad connection state.

See also
Renderer::FireGamepadEvent

Public Types

enum  Type { kType_GamepadConnected , kType_GamepadDisconnected }
 The various GamepadEvent types. More...
 

Public Attributes

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

Member Enumeration Documentation

◆ Type

The various GamepadEvent types.

Enumerator
kType_GamepadConnected 

This event type should be fired when a gamepad is connected.

Note
You will need to previously declare the gamepad, its index, and details about its axis and button layout via Renderer::SetGamepadDetails prior to calling Renderer::FireGamepadEvent.
kType_GamepadDisconnected 

This event type should be fired when a gamepad is disconnected.

Member Data Documentation

◆ index

uint32_t ultralight::GamepadEvent::index

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

◆ type

Type ultralight::GamepadEvent::type

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