From e151bab3f1f5b1ea7908dd715289ed316e90684c Mon Sep 17 00:00:00 2001 From: Vadim Grigoruk Date: Sun, 26 Aug 2018 10:35:41 +0300 Subject: [PATCH] #707 AltGR fix --- src/system.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/system.c b/src/system.c index 3f9a2ba..98f2d5d 100644 --- a/src/system.c +++ b/src/system.c @@ -397,16 +397,17 @@ static void processMouse() static void processKeyboard() { + tic_mem* tic = platform.studio->tic; + { SDL_Keymod mod = SDL_GetModState(); platform.keyboard.state[tic_key_shift] = mod & KMOD_SHIFT; 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; } - tic80_input* input = &platform.studio->tic->ram.input; + tic80_input* input = &tic->ram.input; input->keyboard.data = 0; enum{BufSize = COUNT_OF(input->keyboard.keys)};