]> git.jsancho.org Git - lugaru.git/commitdiff
Fixed command key sticking (where Mac users might quit game by accident).
authorRyan C. Gordon <icculus@icculus.org>
Thu, 13 May 2010 07:05:00 +0000 (03:05 -0400)
committerRyan C. Gordon <icculus@icculus.org>
Thu, 13 May 2010 07:05:00 +0000 (03:05 -0400)
Thanks to Kao Felix for the fix!

Source/OpenGL_Windows.cpp

index 2334e460b4c00a04094890b64b2193108da8ad0f..15a71f327276818069a4cdaa280385533152c5d9 100644 (file)
@@ -559,6 +559,8 @@ static void sdlEventProc(const SDL_Event &e, Game &game)
                 ClearKey(MAC_CONTROL_KEY);
             if ((mod & KMOD_ALT) == 0)
                 ClearKey(MAC_OPTION_KEY);
+            if ((mod & KMOD_META) == 0)
+                ClearKey(MAC_COMMAND_KEY);
             if ((mod & KMOD_SHIFT) == 0)
                 ClearKey(MAC_SHIFT_KEY);
             if ((mod & KMOD_CAPS) == 0)