SDL 3.0
|
#include <SDL_events.h>
Data Fields | |
Uint32 | type |
Uint64 | timestamp |
SDL_JoystickID | which |
Sint32 | sensor |
float | data [3] |
Uint64 | sensor_timestamp |
Gamepad sensor event structure (event.gsensor.*)
Definition at line 484 of file SDL_events.h.
float SDL_GamepadSensorEvent::data[3] |
Up to 3 values from the sensor, as defined in SDL_sensor.h
Definition at line 490 of file SDL_events.h.
Sint32 SDL_GamepadSensorEvent::sensor |
The type of the sensor, one of the values of SDL_SensorType
Definition at line 489 of file SDL_events.h.
Uint64 SDL_GamepadSensorEvent::sensor_timestamp |
The timestamp of the sensor reading in nanoseconds, not necessarily synchronized with the system clock
Definition at line 491 of file SDL_events.h.
Uint64 SDL_GamepadSensorEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 487 of file SDL_events.h.
Uint32 SDL_GamepadSensorEvent::type |
SDL_EVENT_GAMEPAD_SENSOR_UPDATE
Definition at line 486 of file SDL_events.h.
SDL_JoystickID SDL_GamepadSensorEvent::which |
The joystick instance id
Definition at line 488 of file SDL_events.h.