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 committed 2021-08-10 17:50:17 -07:00
1 parent 609cea1eb8
commit cb1e20b058
8 files changed
+38 -2

No files matched your search

+2
View File
@@ -86,6 +86,8 @@ print_modifiers(char **text, size_t *maxlen)
print_string(text, maxlen, " CAPS");
if (mod & KMOD_MODE)
print_string(text, maxlen, " MODE");
if (mod & KMOD_SCROLL)
print_string(text, maxlen, " SCROLL");
}
static void
+2
View File
@@ -86,6 +86,8 @@ print_modifiers(char **text, size_t *maxlen)
print_string(text, maxlen, " CAPS");
if (mod & KMOD_MODE)
print_string(text, maxlen, " MODE");
if (mod & KMOD_SCROLL)
print_string(text, maxlen, " SCROLL");
}
static void
+1 -1
View File
@@ -305,7 +305,7 @@ keyboard_getSetModState(void *arg)
KMOD_NUM |
KMOD_CAPS |
KMOD_MODE |
KMOD_RESERVED;
KMOD_SCROLL;
/* Get state, cache for later reset */
result = SDL_GetModState();