summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-12-17 23:32:54 +0000
committerdominik <dominik@openttd.org>2004-12-17 23:32:54 +0000
commit64f98e058d8f54a23645614b09287f059893b9ab (patch)
tree500b625ba4401ef1834fc4b3a5c855f12b8094a7
parent9d05289147bd09a38babdae9171d617c7a8876c1 (diff)
downloadopenttd-64f98e058d8f54a23645614b09287f059893b9ab.tar.xz
(svn r1148) Fix: The console hotkey is finally working properly on all keyboards. It's the key on the top left corner
-rw-r--r--win32.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/win32.c b/win32.c
index dd6e76e6b..f9004435b 100644
--- a/win32.c
+++ b/win32.c
@@ -113,9 +113,6 @@ static const VkMapping _vk_mapping[] = {
AM('A','Z','A','Z'),
AM('0','9','0','9'),
- AS(VK_OEM_3, WKC_BACKQUOTE),
- AS(220, WKC_BACKQUOTE),
-
AS(VK_ESCAPE, WKC_ESC),
AS(VK_PAUSE, WKC_PAUSE),
AS(VK_BACK, WKC_BACKSPACE),
@@ -296,6 +293,13 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
return 0;
}
+ case WM_CHAR: {
+ uint16 scancode = (( lParam & 0xFF0000 ) >> 16 );
+ if( scancode == 41 )
+ _pressed_key = WKC_BACKQUOTE << 16;
+ } break;
+
+
case WM_KEYDOWN: {
// this is the rewritten ascii input function
// it disables windows deadkey handling --> more linux like :D