From f09293b22cdec7d8b309baea0a58e93757c77913 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 5 Dec 2004 17:42:20 +0000 Subject: Clean up OSystem::Event svn-id: r15990 --- sword1/animation.cpp | 2 +- sword1/control.cpp | 2 +- sword1/credits.cpp | 2 +- sword1/sword1.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sword1') diff --git a/sword1/animation.cpp b/sword1/animation.cpp index c856b6a411..07788b45f8 100644 --- a/sword1/animation.cpp +++ b/sword1/animation.cpp @@ -141,7 +141,7 @@ void MoviePlayer::play(uint32 id) { frameCount++; OSystem::Event event; while (_sys->pollEvent(event)) { - switch (event.event_code) { + switch (event.type) { #ifndef BACKEND_8BIT case OSystem::EVENT_SCREEN_CHANGED: anim->invalidateLookup(true); diff --git a/sword1/control.cpp b/sword1/control.cpp index 989a14b6de..db86a88e0d 100644 --- a/sword1/control.cpp +++ b/sword1/control.cpp @@ -993,7 +993,7 @@ void Control::delay(uint32 msecs) { do { while (_system->pollEvent(event)) { - switch (event.event_code) { + switch (event.type) { case OSystem::EVENT_KEYDOWN: // Make sure backspace works right (this fixes a small issue on OS X) diff --git a/sword1/credits.cpp b/sword1/credits.cpp index 0454bbe163..4e55d75556 100644 --- a/sword1/credits.cpp +++ b/sword1/credits.cpp @@ -273,7 +273,7 @@ void CreditsPlayer::delay(int msecs) { uint32 start = _system->getMillis(); do { while (_system->pollEvent(event)) { - switch (event.event_code) { + switch (event.type) { case OSystem::EVENT_QUIT: SwordEngine::_systemVars.engineQuit = true; break; diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp index f5f1f8bad4..86e986dc40 100644 --- a/sword1/sword1.cpp +++ b/sword1/sword1.cpp @@ -1292,7 +1292,7 @@ void SwordEngine::delay(uint amount) { //copied and mutilated from sky.cpp do { while (_system->pollEvent(event)) { - switch (event.event_code) { + switch (event.type) { case OSystem::EVENT_KEYDOWN: // Make sure backspace works right (this fixes a small issue on OS X) -- cgit v1.2.3