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_GetSensorID - Get the instance ID of a sensor.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                                 SDL_GetSensorID(3)

Function Parameters

sensor the SDL_Sensor
               object to inspect.

Header File

       Defined in SDL3/SDL_sensor.h

Name

       SDL_GetSensorID - Get the instance ID of a sensor.

Return Value

       (  SDL_SensorID  )  Returns  the  sensor  instance  ID,  or  0  on failure; call SDL_GetError () for more
       information.

Synopsis

#include"SDL3/SDL.h"SDL_SensorIDSDL_GetSensorID(SDL_Sensor*sensor);

See Also