diff options
Diffstat (limited to 'src/client/keycodes.h')
-rw-r--r-- | src/client/keycodes.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/keycodes.h b/src/client/keycodes.h index b18c04f6..ae6f189d 100644 --- a/src/client/keycodes.h +++ b/src/client/keycodes.h @@ -262,9 +262,13 @@ typedef enum { K_EURO, K_UNDO, - K_LAST_KEY // this had better be < MAX_KEYS! + MAX_KEYS } keyNum_t; +// MAX_KEYS replaces K_LAST_KEY, however some mods may have used K_LAST_KEY +// in detecting binds, so we leave it defined to the old hardcoded value +// of maxiumum keys to prevent mods from crashing older versions of the engine +#define K_LAST_KEY 256 // The menu code needs to get both key and char events, but // to avoid duplicating the paths, the char events are just |