SDL_GetSensorFromID3
Return the sdl_sensor associated with an instance id.
Usage
#include "SDL3/SDL.h"
SDL_Sensor * SDL_GetSensorFromID(SDL_SensorID instance_id);
Header file
Defined in SDL3/SDL_sensor.h
Function parameters
- instance_id
-
the sensor instance ID.
Return value
( SDL_Sensor
*) Returns an SDL_Sensor
object or NULL on failure; call SDL_GetError () for more information.