aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-11-11 17:07:06 -0500
committerDavid Robillard <d@drobilla.net>2023-11-11 17:07:06 -0500
commit98bd60abe8f34dbbe538b6f85f5f5c02550b5236 (patch)
treed15505e1712f61fe45ed8153b91adeef79e18a4d /test
parent94c52d21ff67d3a47b5e1cf8ae8c530657fae727 (diff)
downloadpugl-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.h7
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*