aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-11-11 17:07:02 -0500
committerDavid Robillard <d@drobilla.net>2023-11-11 17:07:02 -0500
commit94c52d21ff67d3a47b5e1cf8ae8c530657fae727 (patch)
tree6bdf559ee3b47eedc8a87a5e3d2eeac4a40a276e
parent633c151e08a8e2ce81eb5512b7c1f9baa4c44c04 (diff)
downloadpugl-94c52d21ff67d3a47b5e1cf8ae8c530657fae727.tar.gz
pugl-94c52d21ff67d3a47b5e1cf8ae8c530657fae727.tar.bz2
pugl-94c52d21ff67d3a47b5e1cf8ae8c530657fae727.zip
Add a special symbol for the tab key
-rw-r--r--include/pugl/pugl.h1
-rw-r--r--test/test_utils.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h
index 0dca202..9d2a8e1 100644
--- a/include/pugl/pugl.h
+++ b/include/pugl/pugl.h
@@ -342,6 +342,7 @@ typedef struct {
*/
typedef enum {
PUGL_KEY_BACKSPACE = 0x00000008U, ///< Backspace
+ PUGL_KEY_TAB = 0x00000009U, ///< Tab
PUGL_KEY_ENTER = 0x0000000DU, ///< Enter
PUGL_KEY_ESCAPE = 0x0000001BU, ///< Escape
PUGL_KEY_DELETE = 0x0000007FU, ///< Delete
diff --git a/test/test_utils.h b/test/test_utils.h
index 80f28a0..19ad5ba 100644
--- a/test/test_utils.h
+++ b/test/test_utils.h
@@ -127,6 +127,8 @@ keyString(const uint32_t key)
switch (key) {
case PUGL_KEY_BACKSPACE:
return "BACKSPACE";
+ case PUGL_KEY_TAB:
+ return "TAB";
case PUGL_KEY_ENTER:
return "ENTER";
case PUGL_KEY_ESCAPE: