aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/events.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-02-19 23:17:57 -0500
committerPaul Gilbert2014-02-19 23:17:57 -0500
commit58bb1383d0b11d357128ca2b0a7634f091c0fb5b (patch)
tree433248f73b9a5d6987182353e04901cda28a7002 /engines/mads/events.cpp
parent7593ec29d060268b7102509324d83e87c4ddd77c (diff)
downloadscummvm-rg350-58bb1383d0b11d357128ca2b0a7634f091c0fb5b.tar.gz
scummvm-rg350-58bb1383d0b11d357128ca2b0a7634f091c0fb5b.tar.bz2
scummvm-rg350-58bb1383d0b11d357128ca2b0a7634f091c0fb5b.zip
MADS: Added skeleton files for the game and dialogs
Diffstat (limited to 'engines/mads/events.cpp')
-rw-r--r--engines/mads/events.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/mads/events.cpp b/engines/mads/events.cpp
index 8d6262aec3..0950ac02d2 100644
--- a/engines/mads/events.cpp
+++ b/engines/mads/events.cpp
@@ -22,6 +22,7 @@
#include "common/scummsys.h"
#include "common/events.h"
+#include "engines/util.h"
#include "mads/mads.h"
#include "mads/events.h"
@@ -31,4 +32,12 @@ EventsManager::EventsManager(MADSEngine *vm) {
_vm = vm;
}
+void EventsManager::handleEvents() {
+ Common::Event e;
+ while (!_vm->shouldQuit()) {
+ g_system->getEventManager()->pollEvent(e);
+ g_system->delayMillis(10);
+ }
+}
+
} // End of namespace MADS