aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;