SDL_GetSensorFromID

Function SDL_GetSensorFromID 

Source
pub unsafe extern "C" fn SDL_GetSensorFromID(
    instance_id: SDL_SensorID,
) -> *mut SDL_Sensor
Expand description

Return the SDL_Sensor associated with an instance ID.

§Parameters

  • instance_id: the sensor instance ID.

§Return value

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

§Availability

This function is available since SDL 3.2.0.