From 94c52d21ff67d3a47b5e1cf8ae8c530657fae727 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 11 Nov 2023 17:07:02 -0500 Subject: Add a special symbol for the tab key --- include/pugl/pugl.h | 1 + test/test_utils.h | 2 ++ 2 files changed, 3 insertions(+) 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: -- cgit v1.2.1