SDL_OpenSensor - Man Page

Open a sensor for use.

Synopsis

#include <SDL3/SDL_sensor.h>

SDL_Sensor * SDL_OpenSensor(SDL_SensorID instance_id);

Function Parameters

instance_id

the sensor instance ID.

Return Value

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.16 Simple Directmedia Layer SDL3 FUNCTIONS