From 99dfb8bcbc03ba54f9693e03ce7e0ffe7a9e1380 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 29 Dec 2007 09:51:25 +0000 Subject: Added support for using scroll wheel for making selections in the Save/Restore dialog and action lists svn-id: r30070 --- engines/lure/menu.cpp | 3 ++- engines/lure/surface.cpp | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'engines/lure') diff --git a/engines/lure/menu.cpp b/engines/lure/menu.cpp index 2699d4847d..d48e0385b6 100644 --- a/engines/lure/menu.cpp +++ b/engines/lure/menu.cpp @@ -569,7 +569,8 @@ uint16 PopupMenu::Show(int numEntries, const char *actions[]) { refreshFlag = true; } #else - } else if (e.type() == Common::EVENT_LBUTTONDOWN) { + } else if ((e.type() == Common::EVENT_LBUTTONDOWN) || + (e.type() == Common::EVENT_MBUTTONDOWN)) { //mouse.waitForRelease(); goto bail_out; #endif diff --git a/engines/lure/surface.cpp b/engines/lure/surface.cpp index 10526f8469..30c633faf4 100644 --- a/engines/lure/surface.cpp +++ b/engines/lure/surface.cpp @@ -885,7 +885,8 @@ bool SaveRestoreDialog::show(bool saveDialog) { bool doneFlag = false; while (!abortFlag && !doneFlag) { // Provide highlighting of lines to select a save slot - while (!abortFlag && !(mouse.lButton() && (selectedLine != -1)) && !mouse.rButton()) { + while (!abortFlag && !(mouse.lButton() && (selectedLine != -1)) + && !mouse.rButton() && !mouse.mButton()) { abortFlag = events.quitFlag; if (abortFlag) break; @@ -949,7 +950,7 @@ bool SaveRestoreDialog::show(bool saveDialog) { SAVE_DIALOG_Y + SR_SAVEGAME_NAMES_Y + selectedLine * FONT_HEIGHT, SAVE_DIALOG_Y + SR_SAVEGAME_NAMES_Y + (selectedLine + 1) * FONT_HEIGHT - 1); - if (mouse.lButton() || mouse.rButton()) { + if (mouse.lButton() || mouse.rButton() || mouse.mButton()) { abortFlag = mouse.rButton(); mouse.waitForRelease(); } -- cgit v1.2.3