aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wage/menu.cpp')
-rw-r--r--engines/wage/menu.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/engines/wage/menu.cpp b/engines/wage/menu.cpp
index 25bd3b9d8f..f775a4d64c 100644
--- a/engines/wage/menu.cpp
+++ b/engines/wage/menu.cpp
@@ -212,6 +212,8 @@ bool Menu::mouseClick(int x, int y) {
for (int i = 0; i < _items.size(); i++)
if (_items[i]->bbox.contains(x, y)) {
_activeItem = i;
+ _activeSubItem = -1;
+ _menuActivated = true;
return true;
}
@@ -220,4 +222,23 @@ bool Menu::mouseClick(int x, int y) {
return false;
}
+bool Menu::mouseMove(int x, int y) {
+ if (_menuActivated)
+ if (mouseClick(x, y))
+ return true;
+
+ return false;
+}
+
+bool Menu::mouseRelease(int x, int y) {
+ if (_menuActivated) {
+ _menuActivated = false;
+ _activeItem = -1;
+
+ return true;
+ }
+
+ return false;
+}
+
} // End of namespace Wage