summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
Diffstat (limited to 'src/video')
-rw-r--r--src/video/cocoa_v.mm16
-rw-r--r--src/video/sdl_v.cpp16
-rw-r--r--src/video/win32_v.cpp15
3 files changed, 44 insertions, 3 deletions
diff --git a/src/video/cocoa_v.mm b/src/video/cocoa_v.mm
index 425b74d00..409d14215 100644
--- a/src/video/cocoa_v.mm
+++ b/src/video/cocoa_v.mm
@@ -330,7 +330,21 @@ static const VkMapping _vk_mapping[] = {
AS(QZ_KP_MINUS, WKC_NUM_MINUS),
AS(QZ_KP_PLUS, WKC_NUM_PLUS),
AS(QZ_KP_ENTER, WKC_NUM_ENTER),
- AS(QZ_KP_PERIOD, WKC_NUM_DECIMAL)
+ AS(QZ_KP_PERIOD, WKC_NUM_DECIMAL),
+
+ // Other non-letter keys
+ AS(QZ_SLASH, WKC_SLASH),
+ AS(QZ_SEMICOLON, WKC_SEMICOLON),
+ AS(QZ_EQUALS, WKC_EQUALS),
+ AS(QZ_LEFTBRACKET, WKC_L_BRACKET),
+ AS(QZ_BACKSLASH, WKC_BACKSLASH),
+ AS(QZ_RIGHTBRACKET, WKC_R_BRACKET),
+
+ AS(QZ_QUOTE, WKC_SINGLEQUOTE),
+ AS(QZ_COMMA, WKC_COMMA),
+ AS(QZ_MINUS, WKC_MINUS),
+ AS(QZ_PERIOD, WKC_PERIOD)
+
};
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)
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)