mirror of https://github.com/bsnes-emu/bsnes.git
Made SDL menus more consistent between keyboards and joypads (Closes #35)
This commit is contained in:
parent
82436ad838
commit
3a4ed6fd40
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue