From dcd45b4c9f0ea05d968beb236c24623b11b802a4 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 11 Sep 2014 19:57:20 -0500 Subject: Fix Windows key bind name on non-Mac using SDL2 SDL 1.2 sends SDKL_*META (command) and SDLK_*SUPER (windows key). SDL2 sends SDLK_*GUI for both. --- src/sdl/sdl_input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sdl/sdl_input.c b/src/sdl/sdl_input.c index 1a51c928..88ac0451 100644 --- a/src/sdl/sdl_input.c +++ b/src/sdl/sdl_input.c @@ -248,8 +248,13 @@ static keyNum_t IN_TranslateSDLToQ3Key( SDL_Keysym *keysym, qboolean down ) case SDLK_LCTRL: case SDLK_RCTRL: key = K_CTRL; break; +#ifdef MACOS_X case SDLK_RGUI: case SDLK_LGUI: key = K_COMMAND; break; +#else + case SDLK_RGUI: + case SDLK_LGUI: key = K_SUPER; break; +#endif case SDLK_RALT: case SDLK_LALT: key = K_ALT; break; -- cgit