sdlCloseGamepad function

void sdlCloseGamepad(
  1. Pointer<SdlGamepad> gamepad
)

Close a gamepad previously opened with SDL_OpenGamepad().

\param gamepad a gamepad identifier previously returned by SDL_OpenGamepad().

\since This function is available since SDL 3.1.3.

\sa SDL_OpenGamepad

extern SDL_DECLSPEC void SDLCALL SDL_CloseGamepad(SDL_Gamepad *gamepad)

Implementation

void sdlCloseGamepad(Pointer<SdlGamepad> gamepad) {
  final sdlCloseGamepadLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<SdlGamepad> gamepad),
      void Function(Pointer<SdlGamepad> gamepad)>('SDL_CloseGamepad');
  return sdlCloseGamepadLookupFunction(gamepad);
}