ParsecGamepadStateMessage
Gamepad state message.
Member of ParsecMessage
.
Fields
Type | Name | Description |
---|---|---|
uint32_t | id | Unique client-provided index identifying the gamepad. |
uint16_t | buttons | Bitwise OR of ParsecGamepadState values representing buttons pressed. |
int16_t | thumbLX | The left thumbstick X axis value between -32768 and 32767. |
int16_t | thumbLY | The left thumbstick Y axis value between -32768 and 32767. |
int16_t | thumbRX | The right thumbstick X axis value between -32768 and 32767. |
int16_t | thumbRY | The right thumbstick Y axis value between -32768 and 32767. |
uint8_t | leftTrigger | Value of the left trigger between 0 and 255. |
uint8_t | rightTrigger | Value of the right trigger between 0 and 255. |