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.
§Parameters
instance_id: the sensor instance ID.
§Return value
Returns the sensor name, or NULL if instance_id is not valid.
§Availability
This function is available since SDL 3.2.0.