(svn r171) MorphOS: added hotkey for console (tokai)
authorbjarni
Mon, 06 Sep 2004 21:29:02 +0000
changeset 170 8b184d95b4fe
parent 169 4081f1d1f393
child 171 29854f28b90b
(svn r171) MorphOS: added hotkey for console (tokai)
sdl.c
--- a/sdl.c	Mon Sep 06 21:27:26 2004 +0000
+++ b/sdl.c	Mon Sep 06 21:29:02 2004 +0000
@@ -391,7 +391,11 @@
 	#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