Made SDL menus more consistent between keyboards and joypads (Closes #35)

This commit is contained in:
Lior Halphon 2018-06-23 22:36:29 +03:00
parent 82436ad838
commit 3a4ed6fd40
1 changed files with 1 additions and 1 deletions

View File

@ -773,7 +773,7 @@ void run_gui(bool is_running)
if (button == JOYPAD_BUTTON_A) {
event.key.keysym.scancode = SDL_SCANCODE_RETURN;
}
else if (button == JOYPAD_BUTTON_START || button == JOYPAD_BUTTON_B || button == JOYPAD_BUTTON_MENU) {
else if (button == JOYPAD_BUTTON_MENU) {
event.key.keysym.scancode = SDL_SCANCODE_ESCAPE;
}
else if (button == JOYPAD_BUTTON_UP) event.key.keysym.scancode = SDL_SCANCODE_UP;