sdlGetNumGamepadTouchpadFingers function

int sdlGetNumGamepadTouchpadFingers(
  1. Pointer<SdlGamepad> gamepad,
  2. int touchpad
)

Get the number of supported simultaneous fingers on a touchpad on a game gamepad.

\param gamepad a gamepad. \param touchpad a touchpad. \returns number of supported simultaneous fingers.

\since This function is available since SDL 3.1.3.

\sa SDL_GetGamepadTouchpadFinger \sa SDL_GetNumGamepadTouchpads

extern SDL_DECLSPEC int SDLCALL SDL_GetNumGamepadTouchpadFingers(SDL_Gamepad *gamepad, int touchpad)

Implementation

int sdlGetNumGamepadTouchpadFingers(Pointer<SdlGamepad> gamepad, int touchpad) {
  final sdlGetNumGamepadTouchpadFingersLookupFunction = libSdl3.lookupFunction<
      Int32 Function(Pointer<SdlGamepad> gamepad, Int32 touchpad),
      int Function(Pointer<SdlGamepad> gamepad,
          int touchpad)>('SDL_GetNumGamepadTouchpadFingers');
  return sdlGetNumGamepadTouchpadFingersLookupFunction(gamepad, touchpad);
}