sdlSensorGetDeviceNonPortableType function
Get the platform dependent type of a sensor.
\param device_index The sensor to check
\returns the sensor platform dependent type, or -1 if device_index
is out
of range.
\since This function is available since SDL 2.0.9.
extern DECLSPEC int SDLCALL SDL_SensorGetDeviceNonPortableType(int device_index)
Implementation
int sdlSensorGetDeviceNonPortableType(int deviceIndex) {
final sdlSensorGetDeviceNonPortableTypeLookupFunction =
libSdl2.lookupFunction<Int32 Function(Int32 deviceIndex),
int Function(int deviceIndex)>('SDL_SensorGetDeviceNonPortableType');
return sdlSensorGetDeviceNonPortableTypeLookupFunction(deviceIndex);
}