]> git.jsancho.org Git - lugaru.git/commitdiff
Make Apple-Q work like the Carbonized version.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 8 Nov 2009 08:22:11 +0000 (03:22 -0500)
committerRyan C. Gordon <icculus@icculus.org>
Sun, 8 Nov 2009 08:22:11 +0000 (03:22 -0500)
Source/OpenGL_Windows.cpp

index 226025a7a7a9dba7a193da91fc4cf2ad112cc088..244e13505d85949f081aa5db625b5c6f1e471194 100644 (file)
@@ -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)