Open a sensor for use.
Defined in <SDL3/SDL_sensor.h>
SDL_Sensor* SDL_OpenSensor(SDL_SensorID instance_id);
instance_id | the sensor instance ID |
Returns an SDL_Sensor sensor object, or NULL if an error occurred.
This function is available since SDL 3.0.0.
CategoryAPI, CategoryAPIFunction