Skip to content

Commit

Permalink
#707 AltGR fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nesbox committed Aug 26, 2018
1 parent 516e39f commit e151bab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)};
Expand Down

0 comments on commit e151bab

Please sign in to comment.