aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-05-27 17:09:07 -0400
committerDavid Robillard <d@drobilla.net>2023-05-27 17:09:07 -0400
commit49d7ef50c51d3a0da7a7fb8df6573c38213dd4da (patch)
tree454c9aafc470677df1bc811b7a535a7c6599a7f2
parent34e8ea1477fe4b61075dbaea30d7040713a2714d (diff)
downloadpugl-49d7ef50c51d3a0da7a7fb8df6573c38213dd4da.tar.gz
pugl-49d7ef50c51d3a0da7a7fb8df6573c38213dd4da.tar.bz2
pugl-49d7ef50c51d3a0da7a7fb8df6573c38213dd4da.zip
Add convenience symbols for enter and space keys
-rw-r--r--include/pugl/pugl.h4
1 files changed, 3 insertions, 1 deletions
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,