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/gob/util.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/gob/util.cpp')
-rw-r--r-- | engines/gob/util.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/gob/util.cpp b/engines/gob/util.cpp index 6dfa5b4d7c..5eec30e617 100644 --- a/engines/gob/util.cpp +++ b/engines/gob/util.cpp @@ -28,6 +28,8 @@ #include "gob/game.h" #include "gob/inter.h" +#include "common/events.h" + namespace Gob { Util::Util(GobEngine *vm) : _vm(vm) { @@ -139,7 +141,8 @@ int16 Util::getRandom(int16 max) { void Util::processInput() { OSystem::Event event; - while (g_system->pollEvent(event)) { + Common::EventManager *eventMan = g_system->getEventManager(); + while (eventMan->pollEvent(event)) { switch (event.type) { case OSystem::EVENT_MOUSEMOVE: _mouseX = event.mouse.x; |