(svn r3393) -Fix: [OSX] some keyboards had a different scancode for opening the console (egladil)
authorbjarni
Mon, 09 Jan 2006 21:14:56 +0000
changeset 2845 258ea64174da
parent 2844 7a55ad0a6a36
child 2846 ac8731dd4121
(svn r3393) -Fix: [OSX] some keyboards had a different scancode for opening the console (egladil)
video/cocoa_v.h
video/cocoa_v.m
--- a/video/cocoa_v.h	Sun Jan 08 16:56:41 2006 +0000
+++ b/video/cocoa_v.h	Mon Jan 09 21:14:56 2006 +0000
@@ -27,7 +27,8 @@
 #define QZ_SCROLLOCK    0x6B
 #define QZ_PAUSE		0x71
 #define QZ_POWER		0x7F
-#define QZ_BACKQUOTE	0x32
+#define QZ_BACKQUOTE		0x0A
+#define QZ_BACKQUOTE2		0x32
 #define QZ_1			0x12
 #define QZ_2			0x13
 #define QZ_3			0x14
--- a/video/cocoa_v.m	Sun Jan 08 16:56:41 2006 +0000
+++ b/video/cocoa_v.m	Mon Jan 09 21:14:56 2006 +0000
@@ -226,7 +226,9 @@
 #define AS(x, z) {x, z}
 
 static const VkMapping _vk_mapping[] = {
-	AS(10,				WKC_BACKQUOTE),		// key left of '1'
+	AS(QZ_BACKQUOTE,		WKC_BACKQUOTE),		// key left of '1'
+	AS(QZ_BACKQUOTE2,		WKC_BACKQUOTE),		// some keyboards have it on another scancode
+
 	// Pageup stuff + up/down
 	//AM(SDLK_PAGEUP, SDLK_PAGEDOWN, WKC_PAGEUP, WKC_PAGEDOWN),  <==== Does this include HOME/END?
 	AS(QZ_PAGEUP,		WKC_PAGEUP),