aboutsummaryrefslogtreecommitdiff
path: root/engines/sky/intro.cpp
diff options
context:
space:
mode:
authorMax Horn2007-03-17 16:31:46 +0000
committerMax Horn2007-03-17 16:31:46 +0000
commit478c0644f15c23dd357ea891955ce53abc7b7f27 (patch)
treed5e17c56e5a066620c9df0e01d297c8be7097255 /engines/sky/intro.cpp
parent59064dbef45df364ec9854dff8229f5f251c7433 (diff)
downloadscummvm-rg350-478c0644f15c23dd357ea891955ce53abc7b7f27.tar.gz
scummvm-rg350-478c0644f15c23dd357ea891955ce53abc7b7f27.tar.bz2
scummvm-rg350-478c0644f15c23dd357ea891955ce53abc7b7f27.zip
SKY: Changed Control class to use event manager for mouse coord tracking, and also made it respect the SF_MOUSE_LOCKED flag
svn-id: r26177
Diffstat (limited to 'engines/sky/intro.cpp')
-rw-r--r--engines/sky/intro.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sky/intro.cpp b/engines/sky/intro.cpp
index 2129a1a50a..9528be1905 100644
--- a/engines/sky/intro.cpp
+++ b/engines/sky/intro.cpp
@@ -899,6 +899,7 @@ void Intro::restoreScreen(void) {
bool Intro::escDelay(uint32 msecs) {
+ Common::EventManager *eventMan = _system->getEventManager();
OSystem::Event event;
if (_relDelay == 0) // first call, init with system time
_relDelay = (int32)_system->getMillis();
@@ -907,7 +908,6 @@ bool Intro::escDelay(uint32 msecs) {
int32 nDelay = 0;
do {
- Common::EventManager *eventMan = _system->getEventManager();
while (eventMan->pollEvent(event)) {
if (event.type == OSystem::EVENT_KEYDOWN) {
if (event.kbd.keycode == 27)