SDL_GamepadSensorEvent

Gamepad sensor event structure (event.gsensor.*)

\since This struct is available since SDL 3.2.0.

Members

Variables

data
float[3] data;

< Up to 3 values from the sensor, as defined in SDL_sensor.h

reserved
Uint32 reserved;
Undocumented in source.
sensor
Sint32 sensor;

< The type of the sensor, one of the values of SDL_SensorType

sensor_timestamp
Uint64 sensor_timestamp;

< The timestamp of the sensor reading in nanoseconds, not necessarily synchronized with the system clock

timestamp
Uint64 timestamp;

< In nanoseconds, populated using SDL_GetTicksNS()

type
SDL_EventType type;

< SDL_EVENT_GAMEPAD_SENSOR_UPDATE

which
SDL_JoystickID which;

< The joystick instance id

Meta