aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword1/control.cpp')
-rw-r--r--engines/sword1/control.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp
index d40c76eb89..9a4b2fe46a 100644
--- a/engines/sword1/control.cpp
+++ b/engines/sword1/control.cpp
@@ -24,6 +24,7 @@
#include "common/file.h"
#include "common/util.h"
#include "common/savefile.h"
+#include "common/events.h"
#include "common/system.h"
#include "gui/message.h"
@@ -1042,7 +1043,8 @@ void Control::delay(uint32 msecs) {
_mouseState = 0;
do {
- while (_system->pollEvent(event)) {
+ Common::EventManager *eventMan = _system->getEventManager();
+ while (eventMan->pollEvent(event)) {
switch (event.type) {
case OSystem::EVENT_KEYDOWN: