diff options
author | Max Horn | 2007-03-17 00:53:21 +0000 |
---|---|---|
committer | Max Horn | 2007-03-17 00:53:21 +0000 |
commit | 15d9bc42ea14d1c1fd5d1f8787664bbf0944d0a3 (patch) | |
tree | 1658efcaefcad7d9c8301317ea1acd3707048e76 /engines/touche/ui.cpp | |
parent | a6f3ed8173a0490855df84e955229c9f77ecf9c2 (diff) | |
download | scummvm-rg350-15d9bc42ea14d1c1fd5d1f8787664bbf0944d0a3.tar.gz scummvm-rg350-15d9bc42ea14d1c1fd5d1f8787664bbf0944d0a3.tar.bz2 scummvm-rg350-15d9bc42ea14d1c1fd5d1f8787664bbf0944d0a3.zip |
Force all code to use EventManager::pollEvent instead of OSystem::pollEvent
svn-id: r26156
Diffstat (limited to 'engines/touche/ui.cpp')
-rw-r--r-- | engines/touche/ui.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/touche/ui.cpp b/engines/touche/ui.cpp index 8506c1b608..2113640b4b 100644 --- a/engines/touche/ui.cpp +++ b/engines/touche/ui.cpp @@ -21,6 +21,7 @@ */ #include "common/stdafx.h" +#include "common/events.h" #include "common/system.h" #include "common/savefile.h" @@ -377,7 +378,8 @@ void ToucheEngine::handleOptions(int forceDisplay) { } redrawMenu(&menuData); OSystem::Event event; - while (_system->pollEvent(event)) { + Common::EventManager *eventMan = _system->getEventManager(); + while (eventMan->pollEvent(event)) { const Button *button = 0; switch (event.type) { case OSystem::EVENT_QUIT: @@ -535,7 +537,8 @@ int ToucheEngine::displayQuitDialog() { bool quitLoop = false; while (!quitLoop) { OSystem::Event event; - while (_system->pollEvent(event)) { + Common::EventManager *eventMan = _system->getEventManager(); + while (eventMan->pollEvent(event)) { switch (event.type) { case OSystem::EVENT_QUIT: quitLoop = true; |