SDL 3.0
|
Sensor event structure (event.sensor.*) More...
#include <SDL_events.h>
Data Fields | |
Uint32 | type |
Uint64 | timestamp |
SDL_SensorID | which |
float | data [6] |
Uint64 | sensor_timestamp |
Sensor event structure (event.sensor.*)
Definition at line 533 of file SDL_events.h.
float SDL_SensorEvent::data[6] |
Up to 6 values from the sensor - additional values can be queried using SDL_GetSensorData()
Definition at line 538 of file SDL_events.h.
Uint64 SDL_SensorEvent::sensor_timestamp |
The timestamp of the sensor reading in nanoseconds, not necessarily synchronized with the system clock
Definition at line 539 of file SDL_events.h.
Uint64 SDL_SensorEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 536 of file SDL_events.h.
Uint32 SDL_SensorEvent::type |
Definition at line 535 of file SDL_events.h.
SDL_SensorID SDL_SensorEvent::which |
The instance ID of the sensor
Definition at line 537 of file SDL_events.h.