aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2007-04-01 18:08:19 +0000
committerMax Horn2007-04-01 18:08:19 +0000
commit3db1dd05bc4fe12cc00d465c62ebeedd5581bb6f (patch)
tree73bc4847e55914c9fa83865d40d219e847ddfb32
parent1cf48cf17d737faf405efe0e1dd6b53c84934384 (diff)
downloadscummvm-rg350-3db1dd05bc4fe12cc00d465c62ebeedd5581bb6f.tar.gz
scummvm-rg350-3db1dd05bc4fe12cc00d465c62ebeedd5581bb6f.tar.bz2
scummvm-rg350-3db1dd05bc4fe12cc00d465c62ebeedd5581bb6f.zip
Replaced another use of getEventManager() by using Engine::_eventMan
svn-id: r26360
-rw-r--r--engines/touche/touche.cpp3
-rw-r--r--engines/touche/ui.cpp6
2 files changed, 3 insertions, 6 deletions
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;