From be9e6dfdfce348a99ae2f5dcb3b8179be4ab3fae Mon Sep 17 00:00:00 2001 From: vl Date: Fri, 28 May 2010 16:08:37 +0200 Subject: [PATCH] Fixed: #945 mouse click events do not respect mouse position (by rti) --- code/ryzom/client/src/interface_v3/input_handler_manager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/ryzom/client/src/interface_v3/input_handler_manager.cpp b/code/ryzom/client/src/interface_v3/input_handler_manager.cpp index 72383a216..3f55b11a6 100644 --- a/code/ryzom/client/src/interface_v3/input_handler_manager.cpp +++ b/code/ryzom/client/src/interface_v3/input_handler_manager.cpp @@ -331,6 +331,7 @@ void CInputHandlerManager::operator ()(const NLMISC::CEvent &event) _MouseButtonsState = (TMouseButton) (_MouseButtonsState | pEvent->Button); rIP.setButtonState(_MouseButtonsState); + updateMousePos((CEventMouse&)event, eventDesc); // handle Event if(pEvent->Button & leftButton) @@ -355,6 +356,7 @@ void CInputHandlerManager::operator ()(const NLMISC::CEvent &event) _MouseButtonsState = (TMouseButton) (_MouseButtonsState & ~(pEvent->Button)); rIP.setButtonState(_MouseButtonsState); + updateMousePos((CEventMouse&)event, eventDesc); // handle Event if(pEvent->Button & leftButton) @@ -374,6 +376,7 @@ void CInputHandlerManager::operator ()(const NLMISC::CEvent &event) // TODO: yoyo make it work if needed (for now, seems preferable to manage in each ActionHandler) CEventMouseDblClk* pEvent=(CEventMouseDblClk*)&event; + updateMousePos((CEventMouse&)event, eventDesc); // handle Event if(pEvent->Button & leftButton) @@ -401,6 +404,8 @@ void CInputHandlerManager::operator ()(const NLMISC::CEvent &event) else _MouseWheel -= 1; + updateMousePos((CEventMouse&)event, eventDesc); + // handle Event now. if (_MouseWheel != 0) {