aboutsummaryrefslogtreecommitdiffstats
path: root/include/pugl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-01-21 09:28:03 -0500
committerDavid Robillard <d@drobilla.net>2025-01-21 09:34:23 -0500
commit98246e21ebf86db15cc848644bcd3e2827c5a2ca (patch)
tree8e4a24a0433218d096fd5af8fef2cfd7d336577f /include/pugl
parent88759ddbcc4205c9b1a5021fe360bc052ae1dea3 (diff)
downloadpugl-98246e21ebf86db15cc848644bcd3e2827c5a2ca.tar.gz
pugl-98246e21ebf86db15cc848644bcd3e2827c5a2ca.tar.bz2
pugl-98246e21ebf86db15cc848644bcd3e2827c5a2ca.zip
Add PUGL_KEY_NONE
This isn't a strict enumeration anyway, so a sentinel value does no harm, and using it avoids warnings about testing an enum with no zero value.
Diffstat (limited to 'include/pugl')
-rw-r--r--include/pugl/pugl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h
index ac5f51c..79d3969 100644
--- a/include/pugl/pugl.h
+++ b/include/pugl/pugl.h
@@ -341,6 +341,7 @@ typedef struct {
mapping used here is arbitrary and specific to Pugl.
*/
typedef enum {
+ PUGL_KEY_NONE = 0U, ///< Sentinel value for no key
PUGL_KEY_BACKSPACE = 0x00000008U, ///< Backspace
PUGL_KEY_TAB = 0x00000009U, ///< Tab
PUGL_KEY_ENTER = 0x0000000DU, ///< Enter