diff options
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' |