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

Method OnLeftMouseButtonDoubleClick

src/GameWindow.cpp:166–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166bool CGameWindow::OnLeftMouseButtonDoubleClick()
167{
168 bool result = false;
169
170 if (g_CurrentScreen != nullptr && g_ScreenEffectManager.Mode == SEM_NONE)
171 {
172 g_CurrentScreen->SelectObject();
173 g_PressedObject.InitLeft(g_SelectedObject);
174 result = (g_SelectedObject.Object != nullptr &&
175 g_SelectedObject.Object == g_PressedObject.LeftObject) &&
176 g_CurrentScreen->OnLeftMouseButtonDoubleClick();
177
178 if (result)
179 {
180 g_PressedObject.ClearLeft();
181 g_ClickObject.Clear();
182 }
183 }
184
185 return result;
186}
187
188void CGameWindow::OnRightMouseButtonDown()
189{

Callers

nothing calls this directly

Calls 4

InitLeftMethod · 0.80
ClearLeftMethod · 0.80
SelectObjectMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected