sdlGetTouchFinger function
Get the finger object for specified touch device ID and finger index.
The returned resource is owned by SDL and should not be deallocated.
\param touchID the ID of the requested touch device \param index the index of the requested finger \returns a pointer to the SDL_Finger object or NULL if no object at the given ID and index could be found.
\since This function is available since SDL 2.0.0.
\sa SDL_RecordGesture
extern DECLSPEC SDL_Finger * SDLCALL SDL_GetTouchFinger(SDL_TouchID touchID, int index)
Implementation
Pointer<SdlFinger> sdlGetTouchFinger(int touchId, int index) {
final sdlGetTouchFingerLookupFunction = libSdl2.lookupFunction<
Pointer<SdlFinger> Function(Int64 touchId, Int32 index),
Pointer<SdlFinger> Function(
int touchId, int index)>('SDL_GetTouchFinger');
return sdlGetTouchFingerLookupFunction(touchId, index);
}