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 | e15c5fc6b04a70bb0b388a4bd86cab7f7faa39aa (patch) | |
tree | 007552a6d702fafa5e7c7b5de2f213240dba7bb5 /src/video/win32_v.cpp | |
parent | e0c31b63db2b0ffe5734fa9d2af69e4572330145 (diff) | |
download | openttd-e15c5fc6b04a70bb0b388a4bd86cab7f7faa39aa.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/win32_v.cpp')
-rw-r--r-- | src/video/win32_v.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index a1a987565..6a7608705 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -108,7 +108,20 @@ static const VkMapping _vk_mapping[] = { AS(VK_MULTIPLY, WKC_NUM_MUL), AS(VK_SUBTRACT, WKC_NUM_MINUS), AS(VK_ADD, WKC_NUM_PLUS), - AS(VK_DECIMAL, WKC_NUM_DECIMAL) + AS(VK_DECIMAL, WKC_NUM_DECIMAL), + + // Other non-letter keys + AS(0xBF, WKC_SLASH), + AS(0xBA, WKC_SEMICOLON), + AS(0xBB, WKC_EQUALS), + AS(0xDB, WKC_L_BRACKET), + AS(0xDC, WKC_BACKSLASH), + AS(0xDD, WKC_R_BRACKET), + + AS(0xDE, WKC_SINGLEQUOTE), + AS(0xBC, WKC_COMMA), + AS(0xBD, WKC_MINUS), + AS(0xBE, WKC_PERIOD) }; static uint MapWindowsKey(uint sym) |