sdlGetNumGamepadTouchpads function

int sdlGetNumGamepadTouchpads(
  1. Pointer<SdlGamepad> gamepad
)

Get the number of touchpads on a gamepad.

\param gamepad a gamepad. \returns number of touchpads.

\since This function is available since SDL 3.1.3.

\sa SDL_GetNumGamepadTouchpadFingers

extern SDL_DECLSPEC int SDLCALL SDL_GetNumGamepadTouchpads(SDL_Gamepad *gamepad)

Implementation

int sdlGetNumGamepadTouchpads(Pointer<SdlGamepad> gamepad) {
  final sdlGetNumGamepadTouchpadsLookupFunction = libSdl3.lookupFunction<
      Int32 Function(Pointer<SdlGamepad> gamepad),
      int Function(Pointer<SdlGamepad> gamepad)>('SDL_GetNumGamepadTouchpads');
  return sdlGetNumGamepadTouchpadsLookupFunction(gamepad);
}