aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/events.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2018-02-06 21:43:50 -0500
committerPaul Gilbert2018-02-06 21:43:50 -0500
commit94966010dbe392a4e8c9390db325a6f30d8455ab (patch)
treedf6d8331f90f585d69787f0652d91c643bb0b570 /engines/xeen/events.cpp
parent255aa972c64c4cd0d7ce03bccd2394138d285563 (diff)
downloadscummvm-rg350-94966010dbe392a4e8c9390db325a6f30d8455ab.tar.gz
scummvm-rg350-94966010dbe392a4e8c9390db325a6f30d8455ab.tar.bz2
scummvm-rg350-94966010dbe392a4e8c9390db325a6f30d8455ab.zip
XEEN: More of Clouds ending
Diffstat (limited to 'engines/xeen/events.cpp')
-rw-r--r--engines/xeen/events.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/xeen/events.cpp b/engines/xeen/events.cpp
index babfdcb397..bec5b6bd51 100644
--- a/engines/xeen/events.cpp
+++ b/engines/xeen/events.cpp
@@ -179,6 +179,16 @@ void EventsManager::waitForPressAnimated() {
clearEvents();
}
+void EventsManager::waitForPress() {
+ clearEvents();
+
+ do {
+ pollEventsAndWait();
+ } while (!_vm->shouldQuit() && !isKeyMousePressed());
+
+ clearEvents();
+}
+
void EventsManager::nextFrame() {
++_frameCounter;
++_playTime;