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/video/sdl_v.cpp | |
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/video/sdl_v.cpp')
-rw-r--r-- | src/video/sdl_v.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp index b6cc38a64..61023965b 100644 --- a/src/video/sdl_v.cpp +++ b/src/video/sdl_v.cpp @@ -276,7 +276,21 @@ static const VkMapping _vk_mapping[] = { AS(SDLK_KP_MINUS, WKC_NUM_MINUS), AS(SDLK_KP_PLUS, WKC_NUM_PLUS), AS(SDLK_KP_ENTER, WKC_NUM_ENTER), - AS(SDLK_KP_PERIOD, WKC_NUM_DECIMAL) + AS(SDLK_KP_PERIOD, WKC_NUM_DECIMAL), + + // Other non-letter keys + AS(SDLK_SLASH, WKC_SLASH), + AS(SDLK_SEMICOLON, WKC_SEMICOLON), + AS(SDLK_EQUALS, WKC_EQUALS), + AS(SDLK_LEFTBRACKET, WKC_L_BRACKET), + AS(SDLK_BACKSLASH, WKC_BACKSLASH), + AS(SDLK_RIGHTBRACKET, WKC_R_BRACKET), + + AS(SDLK_QUOTE, WKC_SINGLEQUOTE), + AS(SDLK_COMMA, WKC_COMMA), + AS(SDLK_MINUS, WKC_MINUS), + AS(SDLK_PERIOD, WKC_PERIOD) + }; static uint32 ConvertSdlKeyIntoMy(SDL_keysym *sym) |