aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2002-12-08 19:43:11 +0000
committerMax Horn2002-12-08 19:43:11 +0000
commit4dc93957dab3a9aa57e74d2c19ce3b3c87b8eff9 (patch)
treea1d7d91683a730eb56d60569e11a5f8b11298df6
parentbdd479f47d89afc49cc8ad1ea4504b7baa9cd0ef (diff)
downloadscummvm-rg350-4dc93957dab3a9aa57e74d2c19ce3b3c87b8eff9.tar.gz
scummvm-rg350-4dc93957dab3a9aa57e74d2c19ce3b3c87b8eff9.tar.bz2
scummvm-rg350-4dc93957dab3a9aa57e74d2c19ce3b3c87b8eff9.zip
fix backspace key on OS X
svn-id: r5887
-rw-r--r--simon/simon.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index e2e0adcd05..05b12691e9 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -4577,7 +4577,11 @@ void SimonState::delay(uint amount)
if (event.kbd.keycode == 'f')
_fast_mode ^= 1;
}
- _key_pressed = (byte)event.kbd.ascii;
+ // Make sure backspace works right (this fixes a small issue on OS X)
+ if (event.kbd.keycode == 8)
+ _key_pressed = 8;
+ else
+ _key_pressed = (byte)event.kbd.ascii;
break;
case OSystem::EVENT_MOUSEMOVE: