From 15d9bc42ea14d1c1fd5d1f8787664bbf0944d0a3 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 17 Mar 2007 00:53:21 +0000 Subject: Force all code to use EventManager::pollEvent instead of OSystem::pollEvent svn-id: r26156 --- engines/sword2/sword2.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/sword2/sword2.cpp') diff --git a/engines/sword2/sword2.cpp b/engines/sword2/sword2.cpp index fb162aae62..d04cdadfa2 100644 --- a/engines/sword2/sword2.cpp +++ b/engines/sword2/sword2.cpp @@ -26,6 +26,7 @@ #include "common/config-manager.h" #include "common/file.h" #include "common/fs.h" +#include "common/events.h" #include "common/system.h" #include "sword2/sword2.h" @@ -540,7 +541,8 @@ void Sword2Engine::parseInputEvents() { uint32 now = _system->getMillis(); - while (_system->pollEvent(event)) { + Common::EventManager *eventMan = _system->getEventManager(); + while (eventMan->pollEvent(event)) { switch (event.type) { case OSystem::EVENT_KEYDOWN: if (event.kbd.flags == OSystem::KBD_CTRL) { -- cgit v1.2.3