aboutsummaryrefslogtreecommitdiff
path: root/engines/sky/control.cpp
diff options
context:
space:
mode:
authorMax Horn2007-03-17 00:53:21 +0000
committerMax Horn2007-03-17 00:53:21 +0000
commit15d9bc42ea14d1c1fd5d1f8787664bbf0944d0a3 (patch)
tree1658efcaefcad7d9c8301317ea1acd3707048e76 /engines/sky/control.cpp
parenta6f3ed8173a0490855df84e955229c9f77ecf9c2 (diff)
downloadscummvm-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/sky/control.cpp')
-rw-r--r--engines/sky/control.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sky/control.cpp b/engines/sky/control.cpp
index bd51fdf9dc..651dd33c4c 100644
--- a/engines/sky/control.cpp
+++ b/engines/sky/control.cpp
@@ -24,6 +24,7 @@
#include "common/endian.h"
#include "common/config-manager.h"
#include "common/file.h"
+#include "common/events.h"
#include "common/system.h"
#include "common/savefile.h"
#include "common/util.h"
@@ -1550,7 +1551,8 @@ void Control::delay(unsigned int amount) {
_keyPressed = 0; //reset
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)