summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpasky <pasky@openttd.org>2005-03-06 00:39:38 +0000
committerpasky <pasky@openttd.org>2005-03-06 00:39:38 +0000
commit71906d09b7ac6619a74c0a18efacb68bd05101d0 (patch)
tree4f27996ff58a29d3bbf57d5d6db3d63df06e3698
parentfb98c932b24edefcd565a09ed9c217bf827cc5da (diff)
downloadopenttd-71906d09b7ac6619a74c0a18efacb68bd05101d0.tar.xz
(svn r1932) Fix: [SDL] On Linux console, the backquote scancode is 41. Let's hope nothing conflicts with it in X.
-rw-r--r--sdl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sdl.c b/sdl.c
index 515a97e59..73a849f7b 100644
--- a/sdl.c
+++ b/sdl.c
@@ -430,6 +430,7 @@ static uint32 ConvertSdlKeyIntoMy(SDL_keysym *sym)
if (sym->scancode == 60) key |= WKC_BACKQUOTE;
if (sym->scancode == 49) key |= WKC_BACKSPACE;
#else
+ if (sym->scancode == 41) key |= WKC_BACKQUOTE; // Linux console
if (sym->scancode == 49) key |= WKC_BACKQUOTE;
#endif