* Get the instance id for this opened sensor */
| 359 | * Get the instance id for this opened sensor |
| 360 | */ |
| 361 | SDL_SensorID |
| 362 | SDL_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 |
nothing calls this directly
no test coverage detected