aboutsummaryrefslogtreecommitdiff
path: root/pugl/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/common.h')
-rw-r--r--pugl/common.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pugl/common.h b/pugl/common.h
index 6109fe22..df57dc81 100644
--- a/pugl/common.h
+++ b/pugl/common.h
@@ -84,9 +84,14 @@ typedef enum {
/**
Special (non-Unicode) keyboard keys.
+
+ The numerical values of these symbols occupy a reserved range of Unicode
+ points, so it is possible to express either a PuglKey value or a Unicode
+ character in the same variable. This is sometimes useful for interfacing
+ with APIs that do not make this distinction.
*/
typedef enum {
- PUGL_KEY_F1 = 1,
+ PUGL_KEY_F1 = 0xE000,
PUGL_KEY_F2,
PUGL_KEY_F3,
PUGL_KEY_F4,