summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-01-09 21:14:56 +0000
committerbjarni <bjarni@openttd.org>2006-01-09 21:14:56 +0000
commit1b9466802f7625b2655093166196313a9eb7ee01 (patch)
treef39e6e5ad705cd947043a1a83593649bc7c2b9ad
parent9c17d0ec93de7827a89481707b2c9b1339b19ae5 (diff)
downloadopenttd-1b9466802f7625b2655093166196313a9eb7ee01.tar.xz
(svn r3393) -Fix: [OSX] some keyboards had a different scancode for opening the console (egladil)
-rw-r--r--video/cocoa_v.h3
-rw-r--r--video/cocoa_v.m4
2 files changed, 5 insertions, 2 deletions
diff --git a/video/cocoa_v.h b/video/cocoa_v.h
index d1eb253c7..d9fd7b60e 100644
--- a/video/cocoa_v.h
+++ b/video/cocoa_v.h
@@ -27,7 +27,8 @@ extern const HalVideoDriver _cocoa_video_driver;
#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
diff --git a/video/cocoa_v.m b/video/cocoa_v.m
index 6d4ec2bd7..ed996bddd 100644
--- a/video/cocoa_v.m
+++ b/video/cocoa_v.m
@@ -226,7 +226,9 @@ typedef struct VkMapping {
#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),