diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/cycle.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/agi/cycle.cpp b/engines/agi/cycle.cpp index 6c3f2d6825..aba0ef27db 100644 --- a/engines/agi/cycle.cpp +++ b/engines/agi/cycle.cpp @@ -219,9 +219,10 @@ uint16 AgiEngine::processAGIEvents() { // no inner loop active at the moment, regular processing if (key) { - setVar(VM_VAR_KEY, key & 0xFF); if (!handleController(key)) { if (key) { + // Only set VAR_KEY, when no controller/direction was detected + setVar(VM_VAR_KEY, key & 0xFF); if (_text->promptIsEnabled()) { _text->promptKeyPress(key); } |