From 163d2c5105236a46e1a36109f1ab76b883ca73e9 Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 6 Apr 2004 21:55:49 +0000 Subject: [PATCH] Fix bug where key releases got reported as presses. --- src/Main/fg_os_sdl.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Main/fg_os_sdl.cxx b/src/Main/fg_os_sdl.cxx index 9027ef428..9672f20ab 100644 --- a/src/Main/fg_os_sdl.cxx +++ b/src/Main/fg_os_sdl.cxx @@ -137,6 +137,7 @@ static void handleKey(int key, int keyup) } if(keyup) CurrentModifiers &= ~modmask; else CurrentModifiers |= modmask; + if(keyup) CurrentModifiers |= KEYMOD_RELEASED; if(modmask == 0 && KeyHandler) (*KeyHandler)(key, CurrentModifiers, CurrentMouseX, CurrentMouseY); }