diff options
author | Martin Kiewitz | 2017-02-11 10:35:10 +0100 |
---|---|---|
committer | Martin Kiewitz | 2017-02-11 10:35:10 +0100 |
commit | e64e3888163b6f5cce0a8e298eb4379b66426bff (patch) | |
tree | 14c639e95aff91b5708ee30e861eb0c00b30ba21 /engines/agi/agi.h | |
parent | 8420310989cd52627c95ee6966bbe46f99626239 (diff) | |
download | scummvm-rg350-e64e3888163b6f5cce0a8e298eb4379b66426bff.tar.gz scummvm-rg350-e64e3888163b6f5cce0a8e298eb4379b66426bff.tar.bz2 scummvm-rg350-e64e3888163b6f5cce0a8e298eb4379b66426bff.zip |
AGI: Hold-key-mode fix
Original AGI only created a stationary event, when the last
pressed direction key was released. We do that now as well.
Makes cursor in MH1 behave properly.
Thanks to waltervn for pointing this out.
Diffstat (limited to 'engines/agi/agi.h')
-rw-r--r-- | engines/agi/agi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/agi/agi.h b/engines/agi/agi.h index b8c30e9d5c..2b62f9757a 100644 --- a/engines/agi/agi.h +++ b/engines/agi/agi.h @@ -27,6 +27,7 @@ #include "common/error.h" #include "common/util.h" #include "common/file.h" +#include "common/keyboard.h" #include "common/rect.h" #include "common/rendermode.h" #include "common/stack.h" @@ -936,6 +937,7 @@ public: int getDirection(int16 objX, int16 objY, int16 destX, int16 destY, int16 stepSize); bool _keyHoldMode; + Common::KeyCode _keyHoldModeLastKey; // Keyboard int doPollKeyboard(); |