diff options
author | axel <axel@liljencrantz.se> | 2005-10-20 21:27:54 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2005-10-20 21:27:54 +1000 |
commit | ce27f08a44fd18978477bd418f3f0f731368c843 (patch) | |
tree | baa1c30cccc7a2f5328bc132b998d729576a9b24 /input_common.h | |
parent | 83fcc293055a8eb9b94171cc0c665a9691d08f01 (diff) |
Use private use area for internal non-unicode characters
darcs-hash:20051020112754-ac50b-a640e5eb3c72c44671bfd5d0e4d6805018da5b48.gz
Diffstat (limited to 'input_common.h')
-rw-r--r-- | input_common.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/input_common.h b/input_common.h index a877074a..20a1cd8f 100644 --- a/input_common.h +++ b/input_common.h @@ -8,15 +8,19 @@ Header file for the low level input library #include <wchar.h> -#ifndef WCHAR_MAX -#define WCHAR_MAX 0x80000000 -#endif - -#define WCHAR_END (WCHAR_MAX + (unsigned long)1) +/* + Use unencoded private-use keycodes for internal characters +*/ +#define INPUT_COMMON_RESERVED 0xe000 enum { - R_NULL = WCHAR_END + (unsigned long)1 + /** + R_NULL is sometimes returned by the input when a character was + requested but none could be delivered, or when an exception + happened. + */ + R_NULL = INPUT_COMMON_RESERVED } ; |