Handle the KMOD_SCROLL modifier on RISC OS

This commit is contained in:
Cameron Cawley 2021-09-28 17:59:16 +01:00 committed by Sam Lantinga
parent 1268984edc
commit 53b3db0c5d
1 changed files with 3 additions and 2 deletions

View File

@ -156,8 +156,9 @@ RISCOS_InitEvents(_THIS)
driverdata->key_pressed[i] = 255;
status = (_kernel_osbyte(202, 0, 255) & 0xFF);
SDL_ToggleModState(KMOD_NUM, (status & (1 << 2)) == 0);
SDL_ToggleModState(KMOD_CAPS, (status & (1 << 4)) == 0);
SDL_ToggleModState(KMOD_NUM, (status & (1 << 2)) == 0);
SDL_ToggleModState(KMOD_CAPS, (status & (1 << 4)) == 0);
SDL_ToggleModState(KMOD_SCROLL, (status & (1 << 1)) != 0);
/* Disable escape. */
_kernel_osbyte(229, 1, 0);