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

Method OnRightMouseButtonUp

src/GameWindow.cpp:212–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void CGameWindow::OnRightMouseButtonUp()
213{
214 if (g_CurrentScreen != nullptr && g_ScreenEffectManager.Mode == SEM_NONE)
215 {
216 if (g_Target.MultiGraphic == 0)
217 {
218 g_CurrentScreen->SelectObject();
219 }
220 if ((g_SelectedObject.Object != nullptr &&
221 g_SelectedObject.Object == g_PressedObject.RightObject &&
222 (g_SelectedObject.Serial != 0u)) ||
223 g_GameState >= GS_GAME)
224 {
225 g_CurrentScreen->OnRightMouseButtonUp();
226 }
227 g_MovingFromMouse = false;
228 g_PressedObject.ClearRight();
229 }
230}
231
232bool CGameWindow::OnRightMouseButtonDoubleClick()
233{

Callers

nothing calls this directly

Calls 2

ClearRightMethod · 0.80
SelectObjectMethod · 0.45

Tested by

no test coverage detected