aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2007-04-23 08:12:43 +0000
committerEugene Sandulenko2007-04-23 08:12:43 +0000
commit8d1a5da68001bf938115e63cdcd0d56c097cfdb6 (patch)
tree014c7bdc5ff73095b96263e3e15fb85750608f49
parent307506df9ce7537b1ecbb967fc165ac7548dfc25 (diff)
downloadscummvm-rg350-8d1a5da68001bf938115e63cdcd0d56c097cfdb6.tar.gz
scummvm-rg350-8d1a5da68001bf938115e63cdcd0d56c097cfdb6.tar.bz2
scummvm-rg350-8d1a5da68001bf938115e63cdcd0d56c097cfdb6.zip
Patch #1705392: "Fix regression with patch #1704914"
svn-id: r26573
-rw-r--r--engines/agi/keyboard.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp
index 27453848ec..8eea4c0c96 100644
--- a/engines/agi/keyboard.cpp
+++ b/engines/agi/keyboard.cpp
@@ -93,10 +93,6 @@ int AgiEngine::doPollKeyboard() {
if (_gfx->keypress()) {
key = _gfx->getKey();
- if ((getFeatures() & GF_MANHUNTER) && (key == KEY_ENTER) &&
- (_game.inputMode == INPUT_NONE))
- key = 0x20; // Set Enter key to Space in Manhunter when there's no text input
-
debugC(3, kDebugLevelInput, "key %02x pressed", key);
}
@@ -111,6 +107,10 @@ int AgiEngine::handleController(int key) {
if (key == 0 || (key == KEY_ESCAPE && (getFeatures() & GF_ESC_MENU)) )
return false;
+ if ((getFeatures() & GF_MANHUNTER) && (key == KEY_ENTER) &&
+ (_game.inputMode == INPUT_NONE))
+ key = 0x20; // Set Enter key to Space in Manhunter when there's no text input
+
debugC(3, kDebugLevelInput, "key = %04x", key);
for (i = 0; i < MAX_DIRS; i++) {