git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit f1e912b64fe0175dd32b3b6caff16521ac04708d
parent 31340d2a901085e15419e2f68eb4932a9acbe42e
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sun,  6 Nov 2022 13:52:30 +0200

Map the B button to back on SDL menus

Diffstat:
MSDL/gui.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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;

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.