MCPcopy Create free account
hub / github.com/crossuo/crossuo / OnRightMouseButtonDoubleClick

Method OnRightMouseButtonDoubleClick

src/GameWindow.cpp:232–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232bool CGameWindow::OnRightMouseButtonDoubleClick()
233{
234 bool result = false;
235 if (g_CurrentScreen != nullptr && g_ScreenEffectManager.Mode == SEM_NONE)
236 {
237 g_CurrentScreen->SelectObject();
238 g_PressedObject.InitRight(g_SelectedObject);
239 result = (g_SelectedObject.Object != nullptr &&
240 g_SelectedObject.Object == g_PressedObject.RightObject) &&
241 g_CurrentScreen->OnRightMouseButtonDoubleClick();
242
243 if (result)
244 {
245 g_PressedObject.ClearRight();
246 }
247 }
248
249 return result;
250}
251
252void CGameWindow::OnMidMouseButtonDown()
253{

Callers

nothing calls this directly

Calls 3

InitRightMethod · 0.80
ClearRightMethod · 0.80
SelectObjectMethod · 0.45

Tested by

no test coverage detected