Skip to main content

SDL_GetSensorID

Function SDL_GetSensorID 

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

Get the instance ID of a sensor.

Parameter: sensor the SDL_Sensor object to inspect. Returns: the sensor instance ID, or 0 on failure; call SDL_GetError() for more information.

Available Since: This function is available since SDL 3.2.0.