|
Size: 525
Comment: missing Type in function name
|
← Revision 3 as of 2020-01-13 13:49:32 ⇥
Size: 525
Comment: Add CategorySensor
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 23: | Line 23: |
| [[CategoryAPI]], [[CategoryEvents]] | [[CategoryAPI]], [[CategorySensor]] |
SDL_SensorGetDeviceType
Get the type of a sensor.
This can be called before any sensors are opened.
Syntax
SDL_SensorType SDL_SensorGetDeviceType(int device_index);
Function Parameters
device_index |
The sensor to get the type from |
Return Value
The SDL_SensorType, or SDL_SENSOR_INVALID if device_index is out of range.
