projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed key shortcut to start/end game (broken by regression)
[rocksndiamonds.git]
/
src
/
libgame
/
sdl.h
diff --git
a/src/libgame/sdl.h
b/src/libgame/sdl.h
index 9fb16338fefba1760664a21e7ade264a1a190161..dfdd4a407e239f84ecd3f0593715983600be7505 100644
(file)
--- a/
src/libgame/sdl.h
+++ b/
src/libgame/sdl.h
@@
-350,6
+350,12
@@
typedef struct UserEventInfo UserEvent;
#define KSYM_FKEY_LAST KSYM_F12
#define KSYM_NUM_FKEYS (KSYM_FKEY_LAST - KSYM_FKEY_FIRST + 1)
#define KSYM_FKEY_LAST KSYM_F12
#define KSYM_NUM_FKEYS (KSYM_FKEY_LAST - KSYM_FKEY_FIRST + 1)
+#define KSYM_RAW(k) (((k) >= KSYM_a && \
+ (k) <= KSYM_z) || \
+ ((k) >= KSYM_0 && \
+ (k) <= KSYM_9) || \
+ (k) == KSYM_space)
+
#define KSYM_PRINTABLE(k) (((k) >= KSYM_space && \
(k) <= KSYM_z) || \
(k) == KSYM_Adiaeresis || \
#define KSYM_PRINTABLE(k) (((k) >= KSYM_space && \
(k) <= KSYM_z) || \
(k) == KSYM_Adiaeresis || \