diff options
author | David Robillard <d@drobilla.net> | 2023-05-27 17:09:07 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-05-27 17:09:07 -0400 |
commit | 49d7ef50c51d3a0da7a7fb8df6573c38213dd4da (patch) | |
tree | 454c9aafc470677df1bc811b7a535a7c6599a7f2 /include/pugl/pugl.h | |
parent | 34e8ea1477fe4b61075dbaea30d7040713a2714d (diff) | |
download | pugl-49d7ef50c51d3a0da7a7fb8df6573c38213dd4da.tar.gz pugl-49d7ef50c51d3a0da7a7fb8df6573c38213dd4da.tar.bz2 pugl-49d7ef50c51d3a0da7a7fb8df6573c38213dd4da.zip |
Add convenience symbols for enter and space keys
Diffstat (limited to 'include/pugl/pugl.h')
-rw-r--r-- | include/pugl/pugl.h | 4 |
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, |