1.7.2.9
Gameface
cohtml::GamepadStateExtended Struct Reference

Extended representation of the gamepad state, including information for controllers that support motion tracking. More...

+ Inheritance diagram for cohtml::GamepadStateExtended:

Public Attributes

GamepadHand Hand
 The hand that controller belongs to. More...
 
GamepadPoseState Pose
 The motion tracking state of the controller. More...
 
- Public Attributes inherited from cohtml::GamepadState
unsigned Id
 The unique identifier of an already registered gamepad. More...
 
float Timestamp
 A timestamp that marks when was the last time this gamepad was updated. This value is passed directly to JS, we won't use it in any other way so you can also store arbitrary information here. More...
 
float * ButtonValues
 An array of values between 0 and 1 showing how much each button is pressed. Its length must be equal to the number of buttons passed to RegisterGamepad. More...
 
float * AxisValues
 An array of values between -1 and 1 showing the position of each axis. Its length must be equal to the number of axes passed to RegisterGamepad. More...
 

Detailed Description

Extended representation of the gamepad state, including information for controllers that support motion tracking.

Member Data Documentation

◆ Hand

GamepadHand cohtml::GamepadStateExtended::Hand

The hand that controller belongs to.

◆ Pose

GamepadPoseState cohtml::GamepadStateExtended::Pose

The motion tracking state of the controller.