Wiki Page Content

SDL_NumSensors

Get the platform dependent type of a sensor.

This can be called before any sensors are opened.

Syntax

int SDL_SensorGetDeviceNonPortableType(int device_index);

Function Parameters

device_index

The device index to check

Return Value

The sensor platform dependent type, or -1 if device_index is out of range.


CategoryAPI, CategorySensor

None: SDL_NumSensors (last edited 2020-01-13 13:46:38 by markand)

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