logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_OpenSensor - Open a sensor for use.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                                  SDL_OpenSensor(3)

Function Parameters

instance_id
              the sensor instance ID.

Header File

       Defined in SDL3/SDL_sensor.h

Name

       SDL_OpenSensor - Open a sensor for use.

Return Value

       ( SDL_Sensor
        *) Returns an SDL_Sensor
        object or NULL on failure; call SDL_GetError () for more information.

Synopsis

#include"SDL3/SDL.h"SDL_Sensor*SDL_OpenSensor(SDL_SensorIDinstance_id);

See Also