summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2004-12-08 18:17:58 +0000
committerbjarni <bjarni@openttd.org>2004-12-08 18:17:58 +0000
commitec40598d4c6bef047b3369a4b6d982d2b2d2568b (patch)
tree02e4e778a2ac56c2f16af8f59957866ce10b13fc
parent2bb5145a20aabf19c90e0af75f0105ad40bb2e2b (diff)
downloadopenttd-ec40598d4c6bef047b3369a4b6d982d2b2d2568b.tar.xz
(svn r983) SunOS: fixed backspace key (Oskar)
-rw-r--r--sdl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sdl.c b/sdl.c
index 15666aaca..7e41d9b52 100644
--- a/sdl.c
+++ b/sdl.c
@@ -418,9 +418,11 @@ static uint32 ConvertSdlKeyIntoMy(SDL_keysym *sym)
if (sym->scancode == 17) key |= WKC_BACKQUOTE;
#elif defined(__SVR4) && defined(__sun)
if (sym->scancode == 60) key |= WKC_BACKQUOTE;
+ if (sym->scancode == 49) key |= WKC_BACKSPACE;
#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;