logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GamepadSensorEvent - Gamepad sensor event structure (event.gsensor.*)

Availability

       This struct is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                      SDL_GamepadSensorEvent(3type)

Name

       SDL_GamepadSensorEvent - Gamepad sensor event structure (event.gsensor.*)

Synopsis

#include<SDL3/SDL_events.h>typedefstructSDL_GamepadSensorEvent{SDL_EventTypetype;/**<SDL_EVENT_GAMEPAD_SENSOR_UPDATE*/Uint32reserved;Uint64timestamp;/**<Innanoseconds,populatedusingSDL_GetTicksNS()*/SDL_JoystickIDwhich;/**<Thejoystickinstanceid*/Sint32sensor;/**<Thetypeofthesensor,oneofthevaluesofSDL_SensorType*/floatdata[3];/**<Upto3valuesfromthesensor,asdefinedinSDL_sensor.h*/Uint64sensor_timestamp;/**<Thetimestampofthesensorreadinginnanoseconds,notnecessarilysynchronizedwiththesystemclock*/}SDL_GamepadSensorEvent;

See Also