aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorPaul Gilbert2007-12-29 09:51:25 +0000
committerPaul Gilbert2007-12-29 09:51:25 +0000
commit99dfb8bcbc03ba54f9693e03ce7e0ffe7a9e1380 (patch)
treeb2ad1da5ab00b205af8a368e21a5ecb08ab931c0 /engines/lure
parent59b56552665fe23b3c3daf236e94e391c20f757d (diff)
downloadscummvm-rg350-99dfb8bcbc03ba54f9693e03ce7e0ffe7a9e1380.tar.gz
scummvm-rg350-99dfb8bcbc03ba54f9693e03ce7e0ffe7a9e1380.tar.bz2
scummvm-rg350-99dfb8bcbc03ba54f9693e03ce7e0ffe7a9e1380.zip
Added support for using scroll wheel for making selections in the Save/Restore dialog and action lists
svn-id: r30070
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/menu.cpp3
-rw-r--r--engines/lure/surface.cpp5
2 files changed, 5 insertions, 3 deletions
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();
}