From 5aca9dce8c6cce89df3147a6f942620155010c8d Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Sun, 1 Apr 2007 17:36:13 +0000 Subject: added the instance of EventManager returned by OSystem::getEventManager as a member of the Engine base class. This allows to simply the code a bit and should more efficient too (ie. less virtual function chain calls, obj->getA()->getB()). Also updated several engines to make use of it. svn-id: r26357 --- engines/sword2/sword2.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/sword2/sword2.cpp') diff --git a/engines/sword2/sword2.cpp b/engines/sword2/sword2.cpp index 075c0123c2..8f49bba839 100644 --- a/engines/sword2/sword2.cpp +++ b/engines/sword2/sword2.cpp @@ -534,8 +534,7 @@ uint32 Sword2Engine::setInputEventFilter(uint32 filter) { void Sword2Engine::parseInputEvents() { Common::Event event; - Common::EventManager *eventMan = _system->getEventManager(); - while (eventMan->pollEvent(event)) { + while (_eventMan->pollEvent(event)) { switch (event.type) { case Common::EVENT_KEYDOWN: if (event.kbd.flags == Common::KBD_CTRL) { -- cgit v1.2.3