Map the B button to back on SDL menus
@@ -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;
