Function SDL_GetSensorFromID

pub unsafe extern "C" fn SDL_GetSensorFromID(
    instance_id: u32,
) -> *mut SDL_Sensor
Available on crate feature dep_sdl3 only.
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.