Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

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