aboutsummaryrefslogtreecommitdiff
path: root/engines/made
diff options
context:
space:
mode:
authorFilippos Karapetis2008-05-09 19:29:17 +0000
committerFilippos Karapetis2008-05-09 19:29:17 +0000
commit271ce258232e6cf17ac8e6a6b845623d39274aae (patch)
tree5a36e73ec42bd92eb6bac740bfdcc8a1b983b263 /engines/made
parente0b9dec7666887f252a4a6af9d9b44a71f9a6275 (diff)
downloadscummvm-rg350-271ce258232e6cf17ac8e6a6b845623d39274aae.tar.gz
scummvm-rg350-271ce258232e6cf17ac8e6a6b845623d39274aae.tar.bz2
scummvm-rg350-271ce258232e6cf17ac8e6a6b845623d39274aae.zip
The backspace key is now working
svn-id: r31969
Diffstat (limited to 'engines/made')
-rw-r--r--engines/made/scriptfuncs_lgop2.cpp4
-rw-r--r--engines/made/scriptfuncs_mhne.cpp4
-rw-r--r--engines/made/scriptfuncs_rtz.cpp4
3 files changed, 12 insertions, 0 deletions
diff --git a/engines/made/scriptfuncs_lgop2.cpp b/engines/made/scriptfuncs_lgop2.cpp
index cd861da81f..70f265a17d 100644
--- a/engines/made/scriptfuncs_lgop2.cpp
+++ b/engines/made/scriptfuncs_lgop2.cpp
@@ -170,6 +170,10 @@ int16 ScriptFunctionsLgop2::o1_EVENT(int16 argc, int16 *argv) {
case Common::EVENT_KEYDOWN:
_vm->_eventKey = event.kbd.ascii;
+ // For unknown reasons, the game accepts ASCII code
+ // 9 as backspace
+ if (_vm->_eventKey == Common::KEYCODE_BACKSPACE)
+ _vm->_eventKey = 9;
eventNum = 5;
break;
diff --git a/engines/made/scriptfuncs_mhne.cpp b/engines/made/scriptfuncs_mhne.cpp
index bfec0a883d..95a857bf73 100644
--- a/engines/made/scriptfuncs_mhne.cpp
+++ b/engines/made/scriptfuncs_mhne.cpp
@@ -175,6 +175,10 @@ int16 ScriptFunctionsMhne::o1_EVENT(int16 argc, int16 *argv) {
case Common::EVENT_KEYDOWN:
_vm->_eventKey = event.kbd.ascii;
+ // For unknown reasons, the game accepts ASCII code
+ // 9 as backspace
+ if (_vm->_eventKey == Common::KEYCODE_BACKSPACE)
+ _vm->_eventKey = 9;
eventNum = 5;
break;
diff --git a/engines/made/scriptfuncs_rtz.cpp b/engines/made/scriptfuncs_rtz.cpp
index df2a0af527..4c55fe5182 100644
--- a/engines/made/scriptfuncs_rtz.cpp
+++ b/engines/made/scriptfuncs_rtz.cpp
@@ -218,6 +218,10 @@ int16 ScriptFunctionsRtz::o1_EVENT(int16 argc, int16 *argv) {
case Common::EVENT_KEYDOWN:
_vm->_eventKey = event.kbd.ascii;
+ // For unknown reasons, the game accepts ASCII code
+ // 9 as backspace
+ if (_vm->_eventKey == Common::KEYCODE_BACKSPACE)
+ _vm->_eventKey = 9;
eventNum = 5;
break;