From 76798663af96758c0894d583ca0e1aa7b58728c3 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 8 Nov 2009 03:22:11 -0500 Subject: [PATCH] Make Apple-Q work like the Carbonized version. --- Source/OpenGL_Windows.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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) -- 2.39.5