From: Ryan C. Gordon Date: Thu, 13 May 2010 07:05:00 +0000 (-0400) Subject: Fixed command key sticking (where Mac users might quit game by accident). X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=13744c4559f89a66a6353823c4c90ed03ac20555;p=lugaru.git Fixed command key sticking (where Mac users might quit game by accident). Thanks to Kao Felix for the fix! --- diff --git a/Source/OpenGL_Windows.cpp b/Source/OpenGL_Windows.cpp index 2334e46..15a71f3 100644 --- a/Source/OpenGL_Windows.cpp +++ b/Source/OpenGL_Windows.cpp @@ -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)