diff options
author | Paul Gilbert | 2013-12-28 20:32:17 +1100 |
---|---|---|
committer | Paul Gilbert | 2013-12-28 20:32:17 +1100 |
commit | 8fa75375d417ee8b52b6b0ca71d58771c5093e16 (patch) | |
tree | d8f8e19048ab348418ca8b91bb249ff34273ef56 /engines/voyeur/events.cpp | |
parent | f88c4727781b6e6eea4a8a5a7dd09ae90e55ba68 (diff) | |
download | scummvm-rg350-8fa75375d417ee8b52b6b0ca71d58771c5093e16.tar.gz scummvm-rg350-8fa75375d417ee8b52b6b0ca71d58771c5093e16.tar.bz2 scummvm-rg350-8fa75375d417ee8b52b6b0ca71d58771c5093e16.zip |
VOYEUR: Bugfixes for doEvidDisplay
Diffstat (limited to 'engines/voyeur/events.cpp')
-rw-r--r-- | engines/voyeur/events.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp index 94f137e569..6b2b49639a 100644 --- a/engines/voyeur/events.cpp +++ b/engines/voyeur/events.cpp @@ -217,12 +217,11 @@ void EventsManager::delayClick(int cycles) { uint32 totalMilli = cycles * 1000 / GAME_FRAME_RATE; uint32 delayEnd = g_system->getMillis() + totalMilli; - while (!_vm->shouldQuit() && g_system->getMillis() < delayEnd - && !_vm->_voy._mouseClicked) { + do { g_system->delayMillis(10); - - pollEvents(); - } + getMouseInfo(); + } while (!_vm->shouldQuit() && g_system->getMillis() < delayEnd + && !_vm->_voy._mouseClicked); } void EventsManager::pollEvents() { @@ -462,6 +461,11 @@ void EventsManager::getMouseInfo() { _vm->_voy._leftClick = _vm->_voy._newLeftClick; _vm->_voy._rightClick = _vm->_voy._newRightClick; _vm->_voy._mouseUnk = _vm->_voy._newMouseUnk; + + _vm->_voy._newMouseClicked = false; + _vm->_voy._newLeftClick = false; + _vm->_voy._newRightClick = false; + _vm->_voy._mouseUnk = false; } void EventsManager::checkForKey() { |