From: Ryan C. Gordon Date: Sun, 8 Nov 2009 08:22:11 +0000 (-0500) Subject: Make Apple-Q work like the Carbonized version. X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=76798663af96758c0894d583ca0e1aa7b58728c3;p=lugaru.git Make Apple-Q work like the Carbonized version. --- diff --git a/Source/OpenGL_Windows.cpp b/Source/OpenGL_Windows.cpp index 226025a..244e135 100644 --- a/Source/OpenGL_Windows.cpp +++ b/Source/OpenGL_Windows.cpp @@ -518,16 +518,6 @@ static void sdlEventProc(const SDL_Event &e, Game &game) } } - #if (defined(__APPLE__) && defined(__MACH__)) - if (e.key.keysym.sym == SDLK_q) - { - if (e.key.keysym.mod & KMOD_META) - { - gDone=true; - } - } - #endif - else if (e.key.keysym.sym == SDLK_RETURN) { if (e.key.keysym.mod & KMOD_ALT) @@ -545,6 +535,8 @@ static void sdlEventProc(const SDL_Event &e, Game &game) SetKey(MAC_CONTROL_KEY); if (mod & KMOD_ALT) SetKey(MAC_OPTION_KEY); + if (mod & KMOD_META) + SetKey(MAC_COMMAND_KEY); if (mod & KMOD_SHIFT) SetKey(MAC_SHIFT_KEY); if (mod & KMOD_CAPS)