SDL 2.0
|
Game controller sensor event structure (event.csensor.*) More...
#include <SDL_events.h>
Data Fields | |
Uint32 | type |
Uint32 | timestamp |
SDL_JoystickID | which |
Sint32 | sensor |
float | data [3] |
Uint64 | timestamp_us |
Game controller sensor event structure (event.csensor.*)
Definition at line 472 of file SDL_events.h.
float SDL_ControllerSensorEvent::data[3] |
Up to 3 values from the sensor, as defined in SDL_sensor.h
Definition at line 478 of file SDL_events.h.
Sint32 SDL_ControllerSensorEvent::sensor |
The type of the sensor, one of the values of SDL_SensorType
Definition at line 477 of file SDL_events.h.
Uint32 SDL_ControllerSensorEvent::timestamp |
In milliseconds, populated using SDL_GetTicks()
Definition at line 475 of file SDL_events.h.
Uint64 SDL_ControllerSensorEvent::timestamp_us |
The timestamp of the sensor reading in microseconds, if the hardware provides this information.
Definition at line 479 of file SDL_events.h.
Uint32 SDL_ControllerSensorEvent::type |
Definition at line 474 of file SDL_events.h.
SDL_JoystickID SDL_ControllerSensorEvent::which |
The joystick instance id
Definition at line 476 of file SDL_events.h.