Pepper_47_C_interfaces
|
#include <ppb_gamepad.h>
Public Attributes | |
uint32_t | axes_length |
float | axes [16] |
uint32_t | buttons_length |
float | buttons [32] |
double | timestamp |
uint16_t | id [128] |
PP_Bool | connected |
char | unused_pad_ [4] |
The data for one gamepad device.
Definition at line 33 of file ppb_gamepad.h.
float PP_GamepadSampleData::axes[16] |
Normalized values for the axes, indices valid up to |axes_length|-1. Axis values range from -1..1, and are in order of "importance".
Definition at line 42 of file ppb_gamepad.h.
uint32_t PP_GamepadSampleData::axes_length |
Number of valid elements in the |axes| array.
Definition at line 37 of file ppb_gamepad.h.
float PP_GamepadSampleData::buttons[32] |
Normalized values for the buttons, indices valid up to |buttons_length|
Definition at line 51 of file ppb_gamepad.h.
uint32_t PP_GamepadSampleData::buttons_length |
Number of valid elements in the |buttons| array.
Definition at line 46 of file ppb_gamepad.h.
PP_Bool PP_GamepadSampleData::connected |
Is there a gamepad connected at this index? If this is false, no other data in this structure is valid.
Definition at line 65 of file ppb_gamepad.h.
uint16_t PP_GamepadSampleData::id[128] |
Identifier for the type of device/manufacturer.
Definition at line 60 of file ppb_gamepad.h.
double PP_GamepadSampleData::timestamp |
Monotonically increasing value that is incremented when the data have been updated.
Definition at line 56 of file ppb_gamepad.h.
char PP_GamepadSampleData::unused_pad_[4] |
Definition at line 67 of file ppb_gamepad.h.