SDL_GetSensorID - Get the instance ID of a sensor.
Contents
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);
