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/sword1/sword1.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/sword1/sword1.cpp')
-rw-r--r-- | engines/sword1/sword1.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp index e830f7fd98..d9c689a769 100644 --- a/engines/sword1/sword1.cpp +++ b/engines/sword1/sword1.cpp @@ -28,6 +28,7 @@ #include "common/file.h" #include "common/fs.h" #include "common/timer.h" +#include "common/events.h" #include "common/system.h" #include "sword1/resman.h" @@ -705,7 +706,8 @@ void SwordEngine::delay(int32 amount) { //copied and mutilated from sky.cpp uint32 start = _system->getMillis(); do { - while (_system->pollEvent(event)) { + Common::EventManager *eventMan = _system->getEventManager(); + while (eventMan->pollEvent(event)) { switch (event.type) { case OSystem::EVENT_KEYDOWN: // Make sure backspace works right (this fixes a small issue on OS X) |