From 3db1dd05bc4fe12cc00d465c62ebeedd5581bb6f Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 1 Apr 2007 18:08:19 +0000 Subject: Replaced another use of getEventManager() by using Engine::_eventMan svn-id: r26360 --- engines/touche/touche.cpp | 3 +-- engines/touche/ui.cpp | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'engines') diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp index 54503f2235..69e4ac8a22 100644 --- a/engines/touche/touche.cpp +++ b/engines/touche/touche.cpp @@ -285,8 +285,7 @@ void ToucheEngine::mainLoop() { void ToucheEngine::processEvents(bool handleKeyEvents) { Common::Event event; - Common::EventManager *eventMan = _system->getEventManager(); - while (eventMan->pollEvent(event)) { + while (_eventMan->pollEvent(event)) { switch (event.type) { case Common::EVENT_QUIT: _flagsTable[611] = 1; diff --git a/engines/touche/ui.cpp b/engines/touche/ui.cpp index 11da58d75f..997999eaf7 100644 --- a/engines/touche/ui.cpp +++ b/engines/touche/ui.cpp @@ -379,8 +379,7 @@ void ToucheEngine::handleOptions(int forceDisplay) { } } Common::Event event; - Common::EventManager *eventMan = _system->getEventManager(); - while (eventMan->pollEvent(event)) { + while (_eventMan->pollEvent(event)) { const Button *button = 0; switch (event.type) { case Common::EVENT_QUIT: @@ -546,8 +545,7 @@ int ToucheEngine::displayQuitDialog() { bool quitLoop = false; while (!quitLoop) { Common::Event event; - Common::EventManager *eventMan = _system->getEventManager(); - while (eventMan->pollEvent(event)) { + while (_eventMan->pollEvent(event)) { switch (event.type) { case Common::EVENT_QUIT: quitLoop = true; -- cgit v1.2.3