From 71a278791a25d039c39a818f27d1106db1fa0e6e Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 6 Apr 2016 19:02:09 -0400 Subject: TITANIC: Fix setting of buttons in mouse messages --- engines/titanic/input_translator.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/engines/titanic/input_translator.cpp b/engines/titanic/input_translator.cpp index 9769076a1d..499d0f6293 100644 --- a/engines/titanic/input_translator.cpp +++ b/engines/titanic/input_translator.cpp @@ -50,47 +50,47 @@ void CInputTranslator::mouseMove(int special, const Point &pt) { } void CInputTranslator::leftButtonDown(int special, const Point &pt) { - CMouseButtonDownMsg msg(pt, getButtons(special)); + CMouseButtonDownMsg msg(pt, MB_LEFT); _inputHandler->handleMessage(msg); } void CInputTranslator::leftButtonUp(int special, const Point &pt) { - CMouseButtonUpMsg msg(pt, getButtons(special)); + CMouseButtonUpMsg msg(pt, MB_LEFT); _inputHandler->handleMessage(msg); } void CInputTranslator::leftButtonDoubleClick(int special, const Point &pt) { - CMouseDoubleClickMsg msg(pt, getButtons(special)); + CMouseDoubleClickMsg msg(pt, MB_LEFT); _inputHandler->handleMessage(msg); } void CInputTranslator::middleButtonDown(int special, const Point &pt) { - CMouseButtonDownMsg msg(pt, getButtons(special)); + CMouseButtonDownMsg msg(pt, MB_MIDDLE); _inputHandler->handleMessage(msg); } void CInputTranslator::middleButtonUp(int special, const Point &pt) { - CMouseButtonUpMsg msg(pt, getButtons(special)); + CMouseButtonUpMsg msg(pt, MB_MIDDLE); _inputHandler->handleMessage(msg); } void CInputTranslator::middleButtonDoubleClick(int special, const Point &pt) { - CMouseDoubleClickMsg msg(pt, getButtons(special)); + CMouseDoubleClickMsg msg(pt, MB_MIDDLE); _inputHandler->handleMessage(msg); } void CInputTranslator::rightButtonDown(int special, const Point &pt) { - CMouseButtonDownMsg msg(pt, getButtons(special)); + CMouseButtonDownMsg msg(pt, MB_RIGHT); _inputHandler->handleMessage(msg); } void CInputTranslator::rightButtonUp(int special, const Point &pt) { - CMouseButtonUpMsg msg(pt, getButtons(special)); + CMouseButtonUpMsg msg(pt, MB_RIGHT); _inputHandler->handleMessage(msg); } void CInputTranslator::rightButtonDoubleClick(int special, const Point &pt) { - CMouseDoubleClickMsg msg(pt, getButtons(special)); + CMouseDoubleClickMsg msg(pt, MB_RIGHT); _inputHandler->handleMessage(msg); } -- cgit v1.2.3