From cc3f301495ff29f38e3c44760e83f0856547b101 Mon Sep 17 00:00:00 2001 From: twojstaryzdomu Date: Mon, 7 Mar 2022 12:03:15 +0100 Subject: [PATCH] Quit with SELECT/BACK controller button --- sys_sdl2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys_sdl2.c b/sys_sdl2.c index a9737c5..4e1e162 100644 --- a/sys_sdl2.c +++ b/sys_sdl2.c @@ -443,6 +443,7 @@ static void handle_controllerbutton(int button, bool pressed, struct input_t *in input->space = pressed; break; case SDL_CONTROLLER_BUTTON_BACK: + g_sys.input.quit = true; break; case SDL_CONTROLLER_BUTTON_START: break;