diff options
author | David Robillard <d@drobilla.net> | 2023-11-11 17:07:06 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-11-11 17:07:06 -0500 |
commit | 98bd60abe8f34dbbe538b6f85f5f5c02550b5236 (patch) | |
tree | d15505e1712f61fe45ed8153b91adeef79e18a4d /test | |
parent | 94c52d21ff67d3a47b5e1cf8ae8c530657fae727 (diff) | |
download | pugl-98bd60abe8f34dbbe538b6f85f5f5c02550b5236.tar.gz pugl-98bd60abe8f34dbbe538b6f85f5f5c02550b5236.tar.bz2 pugl-98bd60abe8f34dbbe538b6f85f5f5c02550b5236.zip |
Add support for Num, Scroll, and Caps Lock
Diffstat (limited to 'test')
-rw-r--r-- | test/test_utils.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test_utils.h b/test/test_utils.h index 19ad5ba..214b360 100644 --- a/test/test_utils.h +++ b/test/test_utils.h @@ -51,11 +51,14 @@ static inline int printModifiers(const uint32_t mods) { return fprintf(stderr, - "Modifiers:%s%s%s%s\n", + "Modifiers:%s%s%s%s%s%s%s\n", (mods & PUGL_MOD_SHIFT) ? " Shift" : "", (mods & PUGL_MOD_CTRL) ? " Ctrl" : "", (mods & PUGL_MOD_ALT) ? " Alt" : "", - (mods & PUGL_MOD_SUPER) ? " Super" : ""); + (mods & PUGL_MOD_SUPER) ? " Super" : "", + (mods & PUGL_MOD_NUM_LOCK) ? " Num" : "", + (mods & PUGL_MOD_SCROLL_LOCK) ? " Scroll" : "", + (mods & PUGL_MOD_CAPS_LOCK) ? " Caps" : ""); } static inline const char* |