From 3a4ed6fd40b0e53e3345f605c72f0f0c226cdf25 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 23 Jun 2018 22:36:29 +0300 Subject: [PATCH] Made SDL menus more consistent between keyboards and joypads (Closes #35) --- SDL/gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDL/gui.c b/SDL/gui.c index be075e4..f77f064 100644 --- a/SDL/gui.c +++ b/SDL/gui.c @@ -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;