Function SDL_SensorGetInstanceID

pub unsafe extern "C" fn SDL_SensorGetInstanceID(
    sensor: *mut _SDL_Sensor,
) -> i32
Available on crate feature dep_sdl2 only.
Expand description

Get the instance ID of a sensor.

\param sensor The SDL_Sensor object to inspect \returns the sensor instance ID, or -1 if sensor is NULL.

\since This function is available since SDL 2.0.9.