#707 ctrl fix on mac

This commit is contained in:
Vadim Grigoruk 2018-08-26 09:58:16 +03:00
parent 7e19ce65e8
commit 516e39f679
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ static void processKeyboard()
SDL_Keymod mod = SDL_GetModState(); SDL_Keymod mod = SDL_GetModState();
platform.keyboard.state[tic_key_shift] = mod & KMOD_SHIFT; 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_alt] = mod & KMOD_ALT;
platform.keyboard.state[tic_key_capslock] = mod & KMOD_CAPS; platform.keyboard.state[tic_key_capslock] = mod & KMOD_CAPS;
} }