Added KMOD_SCROLL to track the scroll lock state
Fixes https://github.com/libsdl-org/SDL/issues/4566
This commit is contained in:
parent
609cea1eb8
commit
cb1e20b058
8 changed files with 38 additions and 2 deletions
|
@ -767,6 +767,9 @@ SDL_SendKeyboardKeyInternal(Uint8 source, Uint8 state, SDL_Scancode scancode)
|
|||
case SDLK_CAPSLOCK:
|
||||
keyboard->modstate ^= KMOD_CAPS;
|
||||
break;
|
||||
case SDLK_SCROLLLOCK:
|
||||
keyboard->modstate ^= KMOD_SCROLL;
|
||||
break;
|
||||
default:
|
||||
keyboard->modstate |= modifier;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue