From 516e39f6798ce3f7090102f0b365e4168a72220e Mon Sep 17 00:00:00 2001 From: Vadim Grigoruk Date: Sun, 26 Aug 2018 09:58:16 +0300 Subject: [PATCH] #707 ctrl fix on mac --- src/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system.c b/src/system.c index 86a6935..3f9a2ba 100644 --- a/src/system.c +++ b/src/system.c @@ -401,7 +401,7 @@ static void processKeyboard() SDL_Keymod mod = SDL_GetModState(); platform.keyboard.state[tic_key_shift] = mod & KMOD_SHIFT; - platform.keyboard.state[tic_key_ctrl] = mod & KMOD_CTRL; + platform.keyboard.state[tic_key_ctrl] = mod & (KMOD_CTRL | KMOD_GUI); platform.keyboard.state[tic_key_alt] = mod & KMOD_ALT; platform.keyboard.state[tic_key_capslock] = mod & KMOD_CAPS; }