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/resman.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/resman.cpp')
-rw-r--r-- | sword2/resman.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sword2/resman.cpp b/sword2/resman.cpp index 2c715eb9b7..943fc9f24f 100644 --- a/sword2/resman.cpp +++ b/sword2/resman.cpp @@ -956,7 +956,7 @@ void resMan::Kill_all_res(uint8 wantInfo) { //Tony29Nov96 uint32 nuked = 0; _standardHeader *header; int scrolls = 0; - char c; + _keyboardEvent ke; j = base_mem_block; @@ -990,8 +990,8 @@ void resMan::Kill_all_res(uint8 wantInfo) { //Tony29Nov96 ServiceWindows(); } while(!KeyWaiting()); - ReadKey(&c); //kill the key we just pressed - if (c == 27) //ESC + ReadKey(&ke); //kill the key we just pressed + if (ke.keycode == 27) //ESC break; // clear the Press Esc message ready for the new line @@ -1029,7 +1029,7 @@ void resMan::Kill_all_objects(uint8 wantInfo) { // James17jan97 uint32 nuked = 0; _standardHeader *header; int scrolls = 0; - char c; + _keyboardEvent ke; j = base_mem_block; @@ -1063,8 +1063,8 @@ void resMan::Kill_all_objects(uint8 wantInfo) { // James17jan97 } while(!KeyWaiting()); - ReadKey(&c); //kill the key we just pressed - if (c == 27) // ESC + ReadKey(&ke); //kill the key we just pressed + if (ke.keycode == 27) // ESC break; // clear the Press Esc message ready for the new line |