aboutsummaryrefslogtreecommitdiff
path: root/sword2/mem_view.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-09-23 15:59:52 +0000
committerTorbjörn Andersson2003-09-23 15:59:52 +0000
commit57d99796ea8e5d42989d876d35078b686aebda61 (patch)
tree5acf4eb1fb36a47aba53ecd53c361ed1adb7baa1 /sword2/mem_view.cpp
parentd0de9fff86c9e44e9c10b181028d759ebf770f29 (diff)
downloadscummvm-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/mem_view.cpp')
-rw-r--r--sword2/mem_view.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/sword2/mem_view.cpp b/sword2/mem_view.cpp
index de6df195a4..22885c4b2a 100644
--- a/sword2/mem_view.cpp
+++ b/sword2/mem_view.cpp
@@ -34,7 +34,7 @@ void Console_mem_display(void) { // Tony13Aug96
int pass, found_end, k, j, free = 0;
_standardHeader *file_header;
int scrolls = 0;
- char c;
+ _keyboardEvent ke;
char inf[][20] = {
{ "M_null " },
@@ -98,8 +98,7 @@ void Console_mem_display(void) { // Tony13Aug96
Build_display();
-
- if (scrolls==18) {
+ if (scrolls == 18) {
Temp_print_to_console("- Press ESC to stop or any other key to continue");
Build_display();
@@ -107,8 +106,8 @@ void Console_mem_display(void) { // Tony13Aug96
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