Function SDL_GetSensorID
pub unsafe extern "C" fn SDL_GetSensorID(
sensor: *mut SDL_Sensor,
) -> u32 ⓘ
Available on crate feature
dep_sdl3
only.Expand description
Get the instance ID of a sensor.
§Parameters
sensor
: theSDL_Sensor
object to inspect.
§Return value
Returns the sensor instance ID, or 0 on failure; call SDL_GetError()
for
more information.
§Availability
This function is available since SDL 3.2.0.