MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_SensorGetInstanceID

Function SDL_SensorGetInstanceID

deps/SDL2/src/sensor/SDL_sensor.c:361–369  ·  view source on GitHub ↗

* Get the instance id for this opened sensor */

Source from the content-addressed store, hash-verified

359 * Get the instance id for this opened sensor
360 */
361SDL_SensorID
362SDL_SensorGetInstanceID(SDL_Sensor * sensor)
363{
364 if (!SDL_PrivateSensorValid(sensor)) {
365 return -1;
366 }
367
368 return sensor->instance_id;
369}
370
371/*
372 * Get the current state of this sensor

Callers

nothing calls this directly

Calls 1

SDL_PrivateSensorValidFunction · 0.85

Tested by

no test coverage detected