mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-28 19:10:22 +02:00
Made SDL menus more consistent between keyboards and joypads (Closes #35)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user