From 3da69ed1f57850be03ec72b81ed2abb122a9d672 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 21 Aug 2024 19:18:30 +0200 Subject: [PATCH] do not exit menus on left/right arrow presses in SDL2 --- control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control.cpp b/control.cpp index 97c298bf..cc02b92d 100644 --- a/control.cpp +++ b/control.cpp @@ -358,7 +358,7 @@ EX bool doexiton(int sym, int uni) { if(sym == SDLK_LALT) return false; if(sym == SDLK_RALT) return false; #endif - if(uni != 0) return true; + if(uni != 0 && uni < 128) return true; return false; }