SDL 2.0
|
#include <SDL_events.h>
Data Fields | |
Uint32 | type |
Uint32 | timestamp |
Sint32 | which |
float | data [6] |
Uint64 | timestamp_us |
Sensor event structure (event.sensor.*)
Definition at line 600 of file SDL_events.h.
float SDL_SensorEvent::data[6] |
Up to 6 values from the sensor - additional values can be queried using SDL_SensorGetData()
Definition at line 605 of file SDL_events.h.
Uint32 SDL_SensorEvent::timestamp |
In milliseconds, populated using SDL_GetTicks()
Definition at line 603 of file SDL_events.h.
Uint64 SDL_SensorEvent::timestamp_us |
The timestamp of the sensor reading in microseconds, if the hardware provides this information.
Definition at line 606 of file SDL_events.h.
Uint32 SDL_SensorEvent::type |
SDL_SENSORUPDATE
Definition at line 602 of file SDL_events.h.
Sint32 SDL_SensorEvent::which |
The instance ID of the sensor
Definition at line 604 of file SDL_events.h.