From 57d99796ea8e5d42989d876d35078b686aebda61 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 23 Sep 2003 15:59:52 +0000 Subject: 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 --- sword2/logic.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sword2/logic.cpp') diff --git a/sword2/logic.cpp b/sword2/logic.cpp index fc0a25107c..893305014c 100644 --- a/sword2/logic.cpp +++ b/sword2/logic.cpp @@ -328,7 +328,7 @@ uint32 logic::Examine_run_list(void) { // Tony25Oct96 uint32 *game_object_list; _standardHeader *file_header; int scrolls = 0; - char c; + _keyboardEvent ke; if (current_run_list) { // open and lock in place @@ -353,8 +353,8 @@ uint32 logic::Examine_run_list(void) { // Tony25Oct96 } while(!KeyWaiting()); // kill the key we just pressed - ReadKey(&c); - if (c == 27) + ReadKey(&ke); + if (ke.keycode == 27) break; // clear the Press Esc message ready for the -- cgit v1.2.3