sdlCloseJoystick function joystick

void sdlCloseJoystick(
  1. Pointer<SdlJoystick> joystick
)

Close a joystick previously opened with SDL_OpenJoystick().

\param joystick the joystick device to close.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.2.0.

\sa SDL_OpenJoystick

extern SDL_DECLSPEC void SDLCALL SDL_CloseJoystick(SDL_Joystick *joystick)

Implementation

void sdlCloseJoystick(Pointer<SdlJoystick> joystick) {
  final sdlCloseJoystickLookupFunction = _libSdl
      .lookupFunction<
        Void Function(Pointer<SdlJoystick> joystick),
        void Function(Pointer<SdlJoystick> joystick)
      >('SDL_CloseJoystick');
  return sdlCloseJoystickLookupFunction(joystick);
}