From f1e912b64fe0175dd32b3b6caff16521ac04708d Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sun, 6 Nov 2022 13:52:30 +0200 Subject: [PATCH] Map the B button to back on SDL menus --- SDL/gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDL/gui.c b/SDL/gui.c index 22fa5debd..31a02f756 100644 --- a/SDL/gui.c +++ b/SDL/gui.c @@ -1793,7 +1793,7 @@ void run_gui(bool is_running) if (button == JOYPAD_BUTTON_A) { event.key.keysym.scancode = SDL_SCANCODE_RETURN; } - else if (button == JOYPAD_BUTTON_MENU) { + else if (button == JOYPAD_BUTTON_MENU || button == JOYPAD_BUTTON_B) { event.key.keysym.scancode = SDL_SCANCODE_ESCAPE; } else if (button == JOYPAD_BUTTON_UP) event.key.keysym.scancode = SDL_SCANCODE_UP;