aboutsummaryrefslogtreecommitdiff
path: root/sword1
diff options
context:
space:
mode:
authorMax Horn2004-12-05 17:42:20 +0000
committerMax Horn2004-12-05 17:42:20 +0000
commitf09293b22cdec7d8b309baea0a58e93757c77913 (patch)
tree24a0814b173e6607e88d8e71163bcbc9d9d340ac /sword1
parent8d4fcb1689a4c80fa9ef3ec84194fa791bd2c00e (diff)
downloadscummvm-rg350-f09293b22cdec7d8b309baea0a58e93757c77913.tar.gz
scummvm-rg350-f09293b22cdec7d8b309baea0a58e93757c77913.tar.bz2
scummvm-rg350-f09293b22cdec7d8b309baea0a58e93757c77913.zip
Clean up OSystem::Event
svn-id: r15990
Diffstat (limited to 'sword1')
-rw-r--r--sword1/animation.cpp2
-rw-r--r--sword1/control.cpp2
-rw-r--r--sword1/credits.cpp2
-rw-r--r--sword1/sword1.cpp2
4 files changed, 4 insertions, 4 deletions
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)