diff options
author | Nipun Garg | 2019-06-29 02:47:51 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:04 +0200 |
commit | 3d979e14ff234744f534cdcfc651331ac4fd622d (patch) | |
tree | be0ca1b791332cf04a74ace2cba304e65cd86674 /engines/hdb/hdb.cpp | |
parent | 08771f2aebd671f710a862a1111e8cae26f43635 (diff) | |
download | scummvm-rg350-3d979e14ff234744f534cdcfc651331ac4fd622d.tar.gz scummvm-rg350-3d979e14ff234744f534cdcfc651331ac4fd622d.tar.bz2 scummvm-rg350-3d979e14ff234744f534cdcfc651331ac4fd622d.zip |
HDB: Call updateKeys() from game loop
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r-- | engines/hdb/hdb.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 76f495649c..32d65d68e9 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -474,7 +474,10 @@ Common::Error HDBGame::run() { _input->updateMouseButtons(0, 0, -1); break; case Common::EVENT_KEYDOWN: - debug("Key was pressed."); + _input->updateKeys(event, true); + break; + case Common::EVENT_KEYUP: + _input->updateKeys(event, false); break; default: break; |