aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/input_translator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/input_translator.cpp')
-rw-r--r--engines/titanic/input_translator.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/titanic/input_translator.cpp b/engines/titanic/input_translator.cpp
index ce272d152c..0f717de37f 100644
--- a/engines/titanic/input_translator.cpp
+++ b/engines/titanic/input_translator.cpp
@@ -90,6 +90,11 @@ void CInputTranslator::rightButtonUp(int special, const Point &pt) {
_inputHandler->handleMessage(msg);
}
+void CInputTranslator::mouseWheel(bool wheelUp, const Point &pt) {
+ CMouseWheelMsg msg(pt, wheelUp);
+ _inputHandler->handleMessage(msg);
+}
+
void CInputTranslator::rightButtonDoubleClick(int special, const Point &pt) {
CMouseDoubleClickMsg msg(pt, MB_RIGHT);
_inputHandler->handleMessage(msg);
@@ -108,7 +113,7 @@ void CInputTranslator::keyDown(const Common::KeyState &keyState) {
}
bool CInputTranslator::isMousePressed() const {
- return g_vm->_window->getSpecialButtons() & (MK_LBUTTON | MK_RBUTTON | MK_MBUTTON);
+ return g_vm->_events->getSpecialButtons() & (MK_LBUTTON | MK_RBUTTON | MK_MBUTTON);
}
} // End of namespace Titanic