Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2020-01-13 09:06:42
Size: 521
Editor: markand
Comment: Create SDL_SensorGetDeviceType
Revision 2 as of 2020-01-13 09:07:19
Size: 525
Editor: markand
Comment: missing Type in function name
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
= SDL_SensorGetDevice = = SDL_SensorGetDeviceType =

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.


CategoryAPI, CategoryEvents

None: SDL_SensorGetDeviceType (last edited 2020-01-13 13:49:32 by markand)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit