diff options
author | Torbjörn Andersson | 2003-09-23 15:59:52 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-09-23 15:59:52 +0000 |
commit | 57d99796ea8e5d42989d876d35078b686aebda61 (patch) | |
tree | 5acf4eb1fb36a47aba53ecd53c361ed1adb7baa1 /sword2/function.cpp | |
parent | d0de9fff86c9e44e9c10b181028d759ebf770f29 (diff) | |
download | scummvm-rg350-57d99796ea8e5d42989d876d35078b686aebda61.tar.gz scummvm-rg350-57d99796ea8e5d42989d876d35078b686aebda61.tar.bz2 scummvm-rg350-57d99796ea8e5d42989d876d35078b686aebda61.zip |
Changed the keyboard handling to store "keyboard events", rather than just
characters. Hopefully this will make things work smoother on the Mac, but I
have no way of testing that.
svn-id: r10376
Diffstat (limited to 'sword2/function.cpp')
-rw-r--r-- | sword2/function.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sword2/function.cpp b/sword2/function.cpp index f9a2ee6af4..70da452f29 100644 --- a/sword2/function.cpp +++ b/sword2/function.cpp @@ -426,8 +426,6 @@ int32 FN_play_credits(int32 *params) { debug(0, "Credits music length: ~%d ms", music_length); while (g_sound->MusicTimeRemaining()) { - char key; - EraseBackBuffer(); // FIXME: Draw the credits text. The actual text @@ -436,7 +434,9 @@ int32 FN_play_credits(int32 *params) { ServiceWindows(); - if (ReadKey(&key) == RD_OK && key == 27) + _keyboardEvent ke; + + if (ReadKey(&ke) == RD_OK && ke.keycode == 27) break; g_system->delay_msecs(30); |