sdlGetTouchDeviceType function touch
Get the type of the given touch device.
\param touchID the ID of a touch device. \returns touch device type.
\since This function is available since SDL 3.2.0.
extern SDL_DECLSPEC SDL_TouchDeviceType SDLCALL SDL_GetTouchDeviceType(SDL_TouchID touchID)
Implementation
int sdlGetTouchDeviceType(int touchId) {
final sdlGetTouchDeviceTypeLookupFunction = _libSdl
.lookupFunction<
Int32 Function(Uint64 touchId),
int Function(int touchId)
>('SDL_GetTouchDeviceType');
return sdlGetTouchDeviceTypeLookupFunction(touchId);
}