diff options
author | Torbjörn Andersson | 2007-06-22 09:27:13 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-06-22 09:27:13 +0000 |
commit | e42da8f24c92f0828543d75377bf4b8ed1390392 (patch) | |
tree | 6ccb808ae881d9bd5a6ec08007e0c015e9d7c25f /engines | |
parent | 2db2fbfc51158e4e45d8b6f2b8f80114abd6028d (diff) | |
download | scummvm-rg350-e42da8f24c92f0828543d75377bf4b8ed1390392.tar.gz scummvm-rg350-e42da8f24c92f0828543d75377bf4b8ed1390392.tar.bz2 scummvm-rg350-e42da8f24c92f0828543d75377bf4b8ed1390392.zip |
Use KEYCODE constants.
svn-id: r27600
Diffstat (limited to 'engines')
-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; |