mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-16 03:15:38 +00:00
Added SDL_ReloadGamepadMappings() to reset the SDL gamepad mappings
This commit is contained in:
@@ -1627,6 +1627,8 @@ static void loop(void *arg)
|
||||
OpenVirtualGamepad();
|
||||
} else if (event.key.keysym.sym == SDLK_d) {
|
||||
CloseVirtualGamepad();
|
||||
} else if (event.key.keysym.sym == SDLK_r && (event.key.keysym.mod & SDL_KMOD_CTRL)) {
|
||||
SDL_ReloadGamepadMappings();
|
||||
} else if (event.key.keysym.sym == SDLK_ESCAPE) {
|
||||
done = SDL_TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user