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_GetSensorNameForID - Get the implementation dependent name of a sensor.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                          SDL_GetSensorNameForID(3)

Description

       This can be called before any sensors are opened.

Function Parameters

instance_id
              the sensor instance ID.

Header File

       Defined in SDL3/SDL_sensor.h

Name

       SDL_GetSensorNameForID - Get the implementation dependent name of a sensor.

Return Value

       Returns the sensor name, or NULL if instance_id is not valid.

Synopsis

#include"SDL3/SDL.h"constchar*SDL_GetSensorNameForID(SDL_SensorIDinstance_id);

See Also