diff options
Diffstat (limited to 'engines/sword1')
-rw-r--r-- | engines/sword1/animation.cpp | 2 | ||||
-rw-r--r-- | engines/sword1/control.cpp | 2 | ||||
-rw-r--r-- | engines/sword1/sword1.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword1/animation.cpp b/engines/sword1/animation.cpp index 4aad6194e9..d54968daeb 100644 --- a/engines/sword1/animation.cpp +++ b/engines/sword1/animation.cpp @@ -295,7 +295,7 @@ void MoviePlayer::play(void) { handleScreenChanged(); break; case Common::EVENT_KEYDOWN: - if (event.kbd.keycode == 27) { + if (event.kbd.keycode == Common::KEYCODE_ESCAPE) { _snd->stopHandle(_bgSoundHandle); terminated = true; } diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp index 63b86997ce..62dd0ecb6b 100644 --- a/engines/sword1/control.cpp +++ b/engines/sword1/control.cpp @@ -1047,7 +1047,7 @@ void Control::delay(uint32 msecs) { case Common::EVENT_KEYDOWN: // Make sure backspace works right (this fixes a small issue on OS X) - if (event.kbd.keycode == 8) + if (event.kbd.keycode == Common::KEYCODE_BACKSPACE) _keyPressed = 8; else _keyPressed = (byte)event.kbd.ascii; diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp index 97e518421c..05115afc13 100644 --- a/engines/sword1/sword1.cpp +++ b/engines/sword1/sword1.cpp @@ -713,7 +713,7 @@ void SwordEngine::delay(int32 amount) { //copied and mutilated from sky.cpp switch (event.type) { case Common::EVENT_KEYDOWN: // Make sure backspace works right (this fixes a small issue on OS X) - if (event.kbd.keycode == 8) + if (event.kbd.keycode == Common::KEYCODE_BACKSPACE) _keyPressed = 8; else _keyPressed = (uint8)event.kbd.ascii; |