summaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-08-24 22:41:42 +0000
committerdarkvater <darkvater@openttd.org>2004-08-24 22:41:42 +0000
commit5505a10b80e8f17c4a13f8793dfcdaebbe95eb29 (patch)
tree36e69dc4c42fb3ee396cb2d483e16b0d8424904f /sdl.c
parent56fa1a853480fd8c137aa055c5de76829b5aa967 (diff)
downloadopenttd-5505a10b80e8f17c4a13f8793dfcdaebbe95eb29.tar.xz
(svn r136) -Feature/Fix: Console Rev #2 and WKC_BACKQUOTE this patch adds new features to the ingame console and inserts a new keymanagement for windows pcs... (sign_de)
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sdl.c b/sdl.c
index 27784f9d8..67550ed15 100644
--- a/sdl.c
+++ b/sdl.c
@@ -385,8 +385,11 @@ static uint32 ConvertSdlKeyIntoMy(SDL_keysym *sym)
}
// check scancode for BACKQUOTE key, because we want the key left of "1", not anything else (on non-US keyboards)
+#if defined(WIN32)
+ if (sym->scancode == 41) key |= WKC_BACKQUOTE;
+#else
if (sym->scancode == 49) key |= WKC_BACKQUOTE;
-
+#endif
// META are the command keys on mac
if (sym->mod & KMOD_META) key |= WKC_META;
if (sym->mod & KMOD_SHIFT) key |= WKC_SHIFT;