From 5f41a09701d25619fc51e077781e4204080b7d62 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Tue, 2 Feb 2016 23:02:50 +0100 Subject: AGI: Remove inputMode, not needed anyore --- engines/agi/keyboard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/agi/keyboard.cpp') 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); -- cgit v1.2.3