My Project
|
Sensor event structure (event.sensor.*) More...
#include <SDL_events.h>
Data Fields | |
Uint32 | type |
Uint32 | timestamp |
Sint32 | which |
float | data [6] |
Uint64 | timestamp_us |
Sensor event structure (event.sensor.*)
float data[6] |
Up to 6 values from the sensor - additional values can be queried using SDL_SensorGetData()
Uint32 timestamp |
In milliseconds, populated using SDL_GetTicks()
Uint64 timestamp_us |
The timestamp of the sensor reading in microseconds, if the hardware provides this information.
Uint32 type |
Sint32 which |
The instance ID of the sensor