sdlReloadGamepadMappings function

bool sdlReloadGamepadMappings()

Reinitialize the SDL mapping database to its initial state.

This will generate gamepad events as needed if device mappings change.

\returns true on success or false on failure; call SDL_GetError() for more information.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC bool SDLCALL SDL_ReloadGamepadMappings(void)

Implementation

bool sdlReloadGamepadMappings() {
  final sdlReloadGamepadMappingsLookupFunction =
      libSdl3.lookupFunction<Uint8 Function(), int Function()>(
          'SDL_ReloadGamepadMappings');
  return sdlReloadGamepadMappingsLookupFunction() == 1;
}