diff options
author | Paul Gilbert | 2016-11-01 22:30:21 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-11-01 22:30:21 -0400 |
commit | 0f4ca41dad11b97bc563f55b354db6a8006478a9 (patch) | |
tree | cec4555a9ab6389f803476b4e1f1a5d4848f6fc9 /engines/titanic/pet_control/pet_control.cpp | |
parent | 088cc0bff8cd39ddbe829867fd26cd5ba4a4aaba (diff) | |
download | scummvm-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/pet_control/pet_control.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_control.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp index d9f00c2974..689ff0162f 100644 --- a/engines/titanic/pet_control/pet_control.cpp +++ b/engines/titanic/pet_control/pet_control.cpp @@ -37,6 +37,7 @@ BEGIN_MESSAGE_MAP(CPetControl, CGameObject) ON_MESSAGE(MouseDragEndMsg) ON_MESSAGE(MouseButtonUpMsg) ON_MESSAGE(MouseDoubleClickMsg) + ON_MESSAGE(MouseWheelMsg) ON_MESSAGE(KeyCharMsg) ON_MESSAGE(VirtualKeyCharMsg) ON_MESSAGE(TimerMsg) @@ -317,6 +318,13 @@ bool CPetControl::MouseDoubleClickMsg(CMouseDoubleClickMsg *msg) { return _sections[_currentArea]->MouseDoubleClickMsg(msg); } +bool CPetControl::MouseWheelMsg(CMouseWheelMsg *msg) { + if (!containsPt(msg->_mousePos) || isInputLocked()) + return false; + + return _sections[_currentArea]->MouseWheelMsg(msg); +} + bool CPetControl::KeyCharMsg(CKeyCharMsg *msg) { if (isInputLocked()) return false; |