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/agos | |
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/agos')
-rw-r--r-- | engines/agos/animation.cpp | 4 | ||||
-rw-r--r-- | engines/agos/event.cpp | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/engines/agos/animation.cpp b/engines/agos/animation.cpp index 8d0c8dc7cb..3d37972e46 100644 --- a/engines/agos/animation.cpp +++ b/engines/agos/animation.cpp @@ -24,6 +24,7 @@ #include "common/stdafx.h" #include "common/endian.h" +#include "common/events.h" #include "common/system.h" #include "graphics/cursorman.h" @@ -233,7 +234,8 @@ void MoviePlayer::handleNextFrame() { _frameNum++; OSystem::Event event; - while (_vm->_system->pollEvent(event)) { + Common::EventManager *eventMan = _vm->_system->getEventManager(); + while (eventMan->pollEvent(event)) { switch (event.type) { case OSystem::EVENT_KEYDOWN: if (event.kbd.ascii == 27) { diff --git a/engines/agos/event.cpp b/engines/agos/event.cpp index 8ffd6390f9..7008d9a04e 100644 --- a/engines/agos/event.cpp +++ b/engines/agos/event.cpp @@ -27,6 +27,7 @@ #include "agos/debugger.h" #include "agos/intern.h" +#include "common/events.h" #include "common/system.h" #include "gui/about.h" @@ -331,7 +332,8 @@ void AGOSEngine::delay(uint amount) { _inCallBack = false; } - while (_system->pollEvent(event)) { + Common::EventManager *eventMan = _system->getEventManager(); + while (eventMan->pollEvent(event)) { switch (event.type) { case OSystem::EVENT_KEYDOWN: if (event.kbd.keycode >= '0' && event.kbd.keycode <='9' |