Skip to main content

SDL_GetSensorNameForID

Function SDL_GetSensorNameForID 

Source
pub unsafe extern "C" fn SDL_GetSensorNameForID(
    instance_id: SDL_SensorID,
) -> *const c_char
Expand description

Get the implementation dependent name of a sensor.

This can be called before any sensors are opened.

Parameter: instance_id the sensor instance ID. Returns: the sensor name, or NULL if instance_id is not valid.

Available Since: This function is available since SDL 3.2.0.