aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/keyboard.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-02 23:02:50 +0100
committerMartin Kiewitz2016-02-02 23:02:50 +0100
commit5f41a09701d25619fc51e077781e4204080b7d62 (patch)
tree7b221b6c15fb269c30559fa67bdef87b3af05962 /engines/agi/keyboard.cpp
parentcdc6a2f3c309056bc40bff86547f6cd21f39b533 (diff)
downloadscummvm-rg350-5f41a09701d25619fc51e077781e4204080b7d62.tar.gz
scummvm-rg350-5f41a09701d25619fc51e077781e4204080b7d62.tar.bz2
scummvm-rg350-5f41a09701d25619fc51e077781e4204080b7d62.zip
AGI: Remove inputMode, not needed anyore
Diffstat (limited to 'engines/agi/keyboard.cpp')
-rw-r--r--engines/agi/keyboard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp
index d93038b493..a22f733cdf 100644
--- a/engines/agi/keyboard.cpp
+++ b/engines/agi/keyboard.cpp
@@ -402,8 +402,8 @@ bool AgiEngine::handleController(uint16 key) {
// return false;
if ((getGameID() == GID_MH1 || getGameID() == GID_MH2) && (key == AGI_KEY_ENTER) &&
- (_game.inputMode == INPUTMODE_NONE)) {
- key = 0x20; // Set Enter key to Space in Manhunter when there's no text input
+ (!_text->promptIsEnabled())) {
+ key = 0x20; // Set Enter key to Space in Manhunter when prompt is disabled
}
debugC(3, kDebugLevelInput, "key = %04x", key);