summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-09-07 11:55:28 +0000
committerrubidium <rubidium@openttd.org>2008-09-07 11:55:28 +0000
commit956c99e46cd8355f57667e41488c811cb987715b (patch)
tree3b4c9cb6f864efcc8bebde728043914fdbf6e6fe /src/video
parent6e67ea1f9dac718ec58d54b73883b0dd043bff2d (diff)
downloadopenttd-956c99e46cd8355f57667e41488c811cb987715b.tar.xz
(svn r14260) -Fix [FS#2277]: merge keycode for "normal" 0-9 keys and keypad 0-9 keys so people don't get confused that the keypad doesn't work as expected.
Diffstat (limited to 'src/video')
-rw-r--r--src/video/cocoa/event.mm20
-rw-r--r--src/video/sdl_v.cpp2
-rw-r--r--src/video/win32_v.cpp2
3 files changed, 12 insertions, 12 deletions
diff --git a/src/video/cocoa/event.mm b/src/video/cocoa/event.mm
index a196ca4b0..a9273deb7 100644
--- a/src/video/cocoa/event.mm
+++ b/src/video/cocoa/event.mm
@@ -243,16 +243,16 @@ static const VkMapping _vk_mapping[] = {
AS(QZ_F12, WKC_F12),
/* Numeric part */
- AS(QZ_KP0, WKC_NUM_0),
- AS(QZ_KP1, WKC_NUM_1),
- AS(QZ_KP2, WKC_NUM_2),
- AS(QZ_KP3, WKC_NUM_3),
- AS(QZ_KP4, WKC_NUM_4),
- AS(QZ_KP5, WKC_NUM_5),
- AS(QZ_KP6, WKC_NUM_6),
- AS(QZ_KP7, WKC_NUM_7),
- AS(QZ_KP8, WKC_NUM_8),
- AS(QZ_KP9, WKC_NUM_9),
+ AS(QZ_KP0, '0'),
+ AS(QZ_KP1, '1'),
+ AS(QZ_KP2, '2'),
+ AS(QZ_KP3, '3'),
+ AS(QZ_KP4, '4'),
+ AS(QZ_KP5, '5'),
+ AS(QZ_KP6, '6'),
+ AS(QZ_KP7, '7'),
+ AS(QZ_KP8, '8'),
+ AS(QZ_KP9, '9'),
AS(QZ_KP_DIVIDE, WKC_NUM_DIV),
AS(QZ_KP_MULTIPLY, WKC_NUM_MUL),
AS(QZ_KP_MINUS, WKC_NUM_MINUS),
diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp
index 4ccf90abe..3b38e991c 100644
--- a/src/video/sdl_v.cpp
+++ b/src/video/sdl_v.cpp
@@ -270,7 +270,7 @@ static const VkMapping _vk_mapping[] = {
AM(SDLK_F1, SDLK_F12, WKC_F1, WKC_F12),
/* Numeric part. */
- AM(SDLK_KP0, SDLK_KP9, WKC_NUM_0, WKC_NUM_9),
+ AM(SDLK_KP0, SDLK_KP9, '0', '9'),
AS(SDLK_KP_DIVIDE, WKC_NUM_DIV),
AS(SDLK_KP_MULTIPLY, WKC_NUM_MUL),
AS(SDLK_KP_MINUS, WKC_NUM_MINUS),
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index 9f5c32045..6eb9a0fc6 100644
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -106,7 +106,7 @@ static const VkMapping _vk_mapping[] = {
AM(VK_F1, VK_F12, WKC_F1, WKC_F12),
/* Numeric part */
- AM(VK_NUMPAD0, VK_NUMPAD9, WKC_NUM_0, WKC_NUM_9),
+ AM(VK_NUMPAD0, VK_NUMPAD9, '0', '9'),
AS(VK_DIVIDE, WKC_NUM_DIV),
AS(VK_MULTIPLY, WKC_NUM_MUL),
AS(VK_SUBTRACT, WKC_NUM_MINUS),