sdlHidExit function

int sdlHidExit()

Finalize the HIDAPI library.

This function frees all of the static data associated with HIDAPI. It should be called at the end of execution to avoid memory leaks.

\returns 0 on success and -1 on error.

\since This function is available since SDL 2.0.18.

\sa SDL_hid_init

extern DECLSPEC int SDLCALL SDL_hid_exit(void)

Implementation

int sdlHidExit() {
  final sdlHidExitLookupFunction =
      libSdl2.lookupFunction<Int32 Function(), int Function()>('SDL_hid_exit');
  return sdlHidExitLookupFunction();
}