Added KMOD_SCROLL to track the scroll lock state

Fixes https://github.com/libsdl-org/SDL/issues/4566
This commit is contained in:
Sam Lantinga 2021-08-10 17:50:17 -07:00
parent 609cea1eb8
commit cb1e20b058
8 changed files with 38 additions and 2 deletions

View file

@ -338,7 +338,7 @@ typedef enum
KMOD_NUM = 0x1000,
KMOD_CAPS = 0x2000,
KMOD_MODE = 0x4000,
KMOD_RESERVED = 0x8000,
KMOD_SCROLL = 0x8000,
KMOD_CTRL = KMOD_LCTRL | KMOD_RCTRL,
KMOD_SHIFT = KMOD_LSHIFT | KMOD_RSHIFT,