aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
parent94c52d21ff67d3a47b5e1cf8ae8c530657fae727 (diff)
downloadpugl-98bd60abe8f34dbbe538b6f85f5f5c02550b5236.tar.gz
pugl-98bd60abe8f34dbbe538b6f85f5f5c02550b5236.tar.bz2
pugl-98bd60abe8f34dbbe538b6f85f5f5c02550b5236.zip
Add support for Num, Scroll, and Caps Lock
Diffstat (limited to 'include')
-rw-r--r--include/pugl/pugl.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h
index 9d2a8e1..2d7f4b4 100644
--- a/include/pugl/pugl.h
+++ b/include/pugl/pugl.h
@@ -415,10 +415,13 @@ typedef enum {
/// Keyboard modifier flags
typedef enum {
- PUGL_MOD_SHIFT = 1U << 0U, ///< Shift key
- PUGL_MOD_CTRL = 1U << 1U, ///< Control key
- PUGL_MOD_ALT = 1U << 2U, ///< Alt/Option key
- PUGL_MOD_SUPER = 1U << 3U, ///< Mod4/Command/Windows key
+ PUGL_MOD_SHIFT = 1U << 0U, ///< Shift pressed
+ PUGL_MOD_CTRL = 1U << 1U, ///< Control pressed
+ PUGL_MOD_ALT = 1U << 2U, ///< Alt/Option pressed
+ PUGL_MOD_SUPER = 1U << 3U, ///< Super/Command/Windows pressed
+ PUGL_MOD_NUM_LOCK = 1U << 4U, ///< Num lock enabled
+ PUGL_MOD_SCROLL_LOCK = 1U << 5U, ///< Scroll lock enabled
+ PUGL_MOD_CAPS_LOCK = 1U << 6U, ///< Caps lock enabled
} PuglMod;
/// Bitwise OR of #PuglMod values