diff options
author | truelight <truelight@openttd.org> | 2007-07-23 16:39:27 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-07-23 16:39:27 +0000 |
commit | ef0be0e1dc205b5991f6896c86d921bc1934aecb (patch) | |
tree | 007552a6d702fafa5e7c7b5de2f213240dba7bb5 /src/gfx.h | |
parent | 4c1912f8810936024c87f2e6077745a00ed99a91 (diff) | |
download | openttd-ef0be0e1dc205b5991f6896c86d921bc1934aecb.tar.xz |
(svn r10662) -Add: added 'V' as new shortcut for new viewport (bilbo)
-Add: added 'M' as new shortcut for smallmap (bilbo)
-Add: added '+' and '-' as shortcuts to zoom in the mainview (bilbo)
-Add: added support for other keycodes to be possible used in the future (bilbo)
Diffstat (limited to 'src/gfx.h')
-rw-r--r-- | src/gfx.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -80,6 +80,21 @@ enum WindowKeyCodes { /* 0-9 are mapped to 48-57 * A-Z are mapped to 65-90 * a-z are mapped to 97-122 */ + + /* Other keys, corresponding to their ascii values */ + WKC_SLASH = 47, // / Forward slash + WKC_SEMICOLON = 59, // ; Semicolon + WKC_EQUALS = 61, // = Equals + WKC_L_BRACKET = 91, // [ Left square bracket + WKC_BACKSLASH = 92, // \ Backslash + WKC_R_BRACKET = 93, // ] Right square bracket + + /* Other keys of which their ascii value is already taken + * - use unused ascii value not present on keyboard directly */ + WKC_SINGLEQUOTE = 58, // ' Single quote + WKC_COMMA = 60, // , Comma + WKC_PERIOD = 62, // . Period + WKC_MINUS = 95, // - Minus }; enum GameModes { |