Added SDL_ReloadGamepadMappings() to reset the SDL gamepad mappings
This commit is contained in:
1 parent
75e7a6fcfa
commit
9db2cb3513
6 files changed
+83
-38
No files matched your search
@@ -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