From 98246e21ebf86db15cc848644bcd3e2827c5a2ca Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 21 Jan 2025 09:28:03 -0500 Subject: 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. --- include/pugl/pugl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/pugl/pugl.h') 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 -- cgit v1.2.1