aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/messages/mouse_messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/messages/mouse_messages.h')
-rw-r--r--engines/titanic/messages/mouse_messages.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/titanic/messages/mouse_messages.h b/engines/titanic/messages/mouse_messages.h
index a10f3b42a8..05f9685c04 100644
--- a/engines/titanic/messages/mouse_messages.h
+++ b/engines/titanic/messages/mouse_messages.h
@@ -101,6 +101,20 @@ public:
static void generate();
};
+class CMouseWheelMsg : public CMouseMsg {
+public:
+ bool _wheelUp;
+public:
+ CLASSDEF;
+ CMouseWheelMsg() : CMouseMsg(), _wheelUp(false) {}
+ CMouseWheelMsg(const Point &pt, bool wheelUp) :
+ CMouseMsg(pt, 0), _wheelUp(wheelUp) {}
+
+ static bool isSupportedBy(const CTreeItem *item) {
+ return supports(item, _type);
+ }
+};
+
class CMouseDoubleClickMsg : public CMouseButtonMsg {
public:
CLASSDEF;