diff options
author | Eugene Sandulenko | 2007-04-21 21:47:14 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2007-04-21 21:47:14 +0000 |
commit | b0ae4bf1a38b8957b8810d710a2a90f8c2039e6d (patch) | |
tree | 86125f98599c411c59710e4efd074663e5c2da62 /engines/agi/keyboard.cpp | |
parent | 08f5b5f31d3503cfe8927b347988edcc921e6453 (diff) | |
download | scummvm-rg350-b0ae4bf1a38b8957b8810d710a2a90f8c2039e6d.tar.gz scummvm-rg350-b0ae4bf1a38b8957b8810d710a2a90f8c2039e6d.tar.bz2 scummvm-rg350-b0ae4bf1a38b8957b8810d710a2a90f8c2039e6d.zip |
Patch #1704914: "Fix for #1671426: MH2 : Doesn't recognize Enter for actions"
svn-id: r26562
Diffstat (limited to 'engines/agi/keyboard.cpp')
-rw-r--r-- | engines/agi/keyboard.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp index 5c5b936b69..27453848ec 100644 --- a/engines/agi/keyboard.cpp +++ b/engines/agi/keyboard.cpp @@ -92,6 +92,11 @@ int AgiEngine::doPollKeyboard() { /* If a key is ready, rip it */ 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); } |