SDL_OpenSensor - Man Page
Open a sensor for use.
Header File
Defined in SDL3/SDL_sensor.h
Synopsis
#include "SDL3/SDL.h" SDL_Sensor * SDL_OpenSensor(SDL_SensorID instance_id);
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.
Availability
This function is available since SDL 3.2.0.
Info
SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS