aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/messages
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-01 22:30:21 -0400
committerPaul Gilbert2016-11-01 22:30:21 -0400
commit0f4ca41dad11b97bc563f55b354db6a8006478a9 (patch)
treecec4555a9ab6389f803476b4e1f1a5d4848f6fc9 /engines/titanic/messages
parent088cc0bff8cd39ddbe829867fd26cd5ba4a4aaba (diff)
downloadscummvm-rg350-0f4ca41dad11b97bc563f55b354db6a8006478a9.tar.gz
scummvm-rg350-0f4ca41dad11b97bc563f55b354db6a8006478a9.tar.bz2
scummvm-rg350-0f4ca41dad11b97bc563f55b354db6a8006478a9.zip
TITANIC: Add support for mouse wheel scrolling conversations log
Diffstat (limited to 'engines/titanic/messages')
-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;