Sensor event structure (event.sensor.*)
Defined in <SDL3/SDL_events.h>
typedef struct SDL_SensorEvent
{/**< SDL_EVENT_SENSOR_UPDATE */
SDL_EventType type;
Uint32 reserved;/**< In nanoseconds, populated using SDL_GetTicksNS() */
Uint64 timestamp; /**< The instance ID of the sensor */
SDL_SensorID which; float data[6]; /**< Up to 6 values from the sensor - additional values can be queried using SDL_GetSensorData() */
/**< The timestamp of the sensor reading in nanoseconds, not necessarily synchronized with the system clock */
Uint64 sensor_timestamp; } SDL_SensorEvent;
This struct is available since SDL 3.1.3.