summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2004-09-06 21:29:02 +0000
committerbjarni <bjarni@openttd.org>2004-09-06 21:29:02 +0000
commit239f16a1e1ee5dccb87e80341be3a78823e5770a (patch)
tree131cbd7ef5555b003a550cf016f5d417dc616aa3
parentbb75f30a7944726f0855e0a9b1e8f2d7a2ead343 (diff)
downloadopenttd-239f16a1e1ee5dccb87e80341be3a78823e5770a.tar.xz
(svn r171) MorphOS: added hotkey for console (tokai)
-rw-r--r--sdl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sdl.c b/sdl.c
index bc10ff8c8..030a348b9 100644
--- a/sdl.c
+++ b/sdl.c
@@ -391,7 +391,11 @@ static uint32 ConvertSdlKeyIntoMy(SDL_keysym *sym)
#if defined(__APPLE__)
if (sym->scancode == 10) key |= WKC_BACKQUOTE;
#else
- if (sym->scancode == 49) key |= WKC_BACKQUOTE;
+ #if defined(__MORPHOS__)
+ if (sym->scancode == 0) key |= WKC_BACKQUOTE; // yes, that key is code '0' under MorphOS :)
+ #else
+ if (sym->scancode == 49) key |= WKC_BACKQUOTE;
+ #endif
#endif
#endif
// META are the command keys on mac