Function sdl2_sys::SDL_SensorGetDeviceInstanceID[][src]

pub unsafe extern "C" fn SDL_SensorGetDeviceInstanceID(
    device_index: c_int
) -> SDL_SensorID
Expand description

\brief Get the instance ID of a sensor.

This can be called before any sensors are opened.

\return The sensor instance ID, or -1 if device_index is out of range.