summaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-08-24 11:53:30 +0000
committerdominik <dominik@openttd.org>2004-08-24 11:53:30 +0000
commit27e9f5888eed7f0b5efabbf0bf11e39cd9cc67e0 (patch)
treeb2948b04966b7e1fd500a5065dd09790bf04a1b1 /sdl.c
parentce0f8a7bcd77d910554768c790f9f5103697da6a (diff)
downloadopenttd-27e9f5888eed7f0b5efabbf0bf11e39cd9cc67e0.tar.xz
(svn r130) Change: hotkey for console is Backquote (the key left to '1', regardless of keyboard layout
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sdl.c b/sdl.c
index 6fea23c06..27784f9d8 100644
--- a/sdl.c
+++ b/sdl.c
@@ -344,8 +344,6 @@ static const VkMapping _vk_mapping[] = {
AM(SDLK_a,SDLK_z,'A','Z'),
AM(SDLK_0,SDLK_9,'0','9'),
- AS(SDLK_AMPERSAND, WKC_AMPERSAND), // mainly for french keyboards
-
AS(SDLK_ESCAPE, WKC_ESC),
AS(SDLK_BACKSPACE, WKC_BACKSPACE),
@@ -385,6 +383,9 @@ static uint32 ConvertSdlKeyIntoMy(SDL_keysym *sym)
break;
}
}
+
+ // check scancode for BACKQUOTE key, because we want the key left of "1", not anything else (on non-US keyboards)
+ if (sym->scancode == 49) key |= WKC_BACKQUOTE;
// META are the command keys on mac
if (sym->mod & KMOD_META) key |= WKC_META;