aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorMatthew Hoops2009-08-16 01:43:18 +0000
committerMatthew Hoops2009-08-16 01:43:18 +0000
commit34380d933579a2499c5029a01a9c21603e641792 (patch)
tree2f9f10ca68eeafb2e30cc46ea93147aa45f72c53 /engines/scumm
parent58486725ec796fe0b2727e8aca4f99c3a139cae5 (diff)
downloadscummvm-rg350-34380d933579a2499c5029a01a9c21603e641792.tar.gz
scummvm-rg350-34380d933579a2499c5029a01a9c21603e641792.tar.bz2
scummvm-rg350-34380d933579a2499c5029a01a9c21603e641792.zip
Fix using the backspace key on Mac OS X in HE games.
svn-id: r43420
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/input.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/scumm/input.cpp b/engines/scumm/input.cpp
index ab32992b03..6523635643 100644
--- a/engines/scumm/input.cpp
+++ b/engines/scumm/input.cpp
@@ -135,6 +135,13 @@ void ScummEngine::parseEvent(Common::Event event) {
// Normal key press, pass on to the game.
_keyPressed = event.kbd;
}
+
+ // WORKAROUND: On Mac OS X, the ascii value has to be set to the
+ // backspace keycode in order for the backspace to work in HE games.
+ // This includes using the backspace when entering coach names
+ // in the backyard games.
+ if (_keyPressed.keycode == Common::KEYCODE_BACKSPACE)
+ _keyPressed.ascii = Common::KEYCODE_BACKSPACE;
// FIXME: We are using ASCII values to index the _keyDownMap here,
// yet later one code which checks _keyDownMap will use KEYCODEs