sdlRecordGesture function
Begin recording a gesture on a specified touch device or all touch devices.
If the parameter touchId
is -1 (i.e., all devices), this function will
always return 1, regardless of whether there actually are any devices.
\param touchId the touch device id, or -1 for all touch devices \returns 1 on success or 0 if the specified device could not be found.
\since This function is available since SDL 2.0.0.
\sa SDL_GetTouchDevice
extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId)
Implementation
int sdlRecordGesture(int touchId) {
final sdlRecordGestureLookupFunction = libSdl2.lookupFunction<
Int32 Function(Int64 touchId),
int Function(int touchId)>('SDL_RecordGesture');
return sdlRecordGestureLookupFunction(touchId);
}