sdlGetNumTouchFingers function

int sdlGetNumTouchFingers(
  1. int touchId
)

Get the number of active fingers for a given touch device.

\param touchID the ID of a touch device \returns the number of active fingers for a given touch device on success or 0 on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_GetTouchFinger

extern DECLSPEC int SDLCALL SDL_GetNumTouchFingers(SDL_TouchID touchID)

Implementation

int sdlGetNumTouchFingers(int touchId) {
  final sdlGetNumTouchFingersLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Int64 touchId),
      int Function(int touchId)>('SDL_GetNumTouchFingers');
  return sdlGetNumTouchFingersLookupFunction(touchId);
}