(svn r1148) Fix: The console hotkey is finally working properly on all keyboards. It's the key on the top left corner
authordominik
Fri, 17 Dec 2004 23:32:54 +0000
changeset 698 9c116656baa5
parent 697 eaada71b7c85
child 699 604af534c65d
(svn r1148) Fix: The console hotkey is finally working properly on all keyboards. It's the key on the top left corner
win32.c
--- a/win32.c	Fri Dec 17 17:06:20 2004 +0000
+++ b/win32.c	Fri Dec 17 23:32:54 2004 +0000
@@ -113,9 +113,6 @@
 	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 @@
 		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