|
⇤ ← Revision 1 as of 2020-01-13 09:13:02
Size: 529
Comment: Create SDL_SensorGetDeviceInstanceID page
|
← Revision 2 as of 2020-01-13 13:48:38 ⇥
Size: 529
Comment: Add CategorySensor
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 23: | Line 23: |
| [[CategoryAPI]], [[CategoryEvents]] | [[CategoryAPI]], [[CategorySensor]] |
SDL_SensorGetDeviceInstanceID
Get the instance ID of a sensor.
This can be called before any sensors are opened.
Syntax
SDL_SensorID SDL_SensorGetDeviceInstanceID(int device_index);
Function Parameters
device_index |
The sensor to get instance id from |
Return Value
The sensor instance ID, or -1 if device_index is out of range.
