Open a sensor for use.
Defined in <SDL3/SDL_sensor.h>
SDL_Sensor * SDL_OpenSensor(SDL_SensorID instance_id);
SDL_SensorID | instance_id | the sensor instance ID. |
(SDL_Sensor *) Returns an SDL_Sensor object or NULL on failure; call SDL_GetError() for more information.
This function is available since SDL 3.1.3.