From 49d7ef50c51d3a0da7a7fb8df6573c38213dd4da Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 27 May 2023 17:09:07 -0400 Subject: Add convenience symbols for enter and space keys --- include/pugl/pugl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index f9dd37e..7d9f0c0 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -341,10 +341,12 @@ typedef struct { mapping used here is arbitrary and specific to Pugl. */ typedef enum { - // ASCII control codes + // ASCII codes commonly mapped to keys PUGL_KEY_BACKSPACE = 0x08, + PUGL_KEY_ENTER = 0x0D, PUGL_KEY_ESCAPE = 0x1B, PUGL_KEY_DELETE = 0x7F, + PUGL_KEY_SPACE = 0x20, // Unicode Private Use Area PUGL_KEY_F1 = 0xE000, -- cgit v1.2.1