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

Method EmulateOnLeftMouseButtonDown

src/GameWindow.cpp:100–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void CGameWindow::EmulateOnLeftMouseButtonDown()
101{
102 if (g_CurrentScreen != nullptr && g_ScreenEffectManager.Mode == SEM_NONE)
103 {
104 g_CurrentScreen->SelectObject();
105 g_PressedObject.InitLeft(g_SelectedObject);
106 if (g_SelectedObject.Object != nullptr || g_GameState == GS_GAME)
107 {
108 Wisp::g_WispMouse->LeftDropPosition = Wisp::g_WispMouse->Position;
109 g_CurrentScreen->OnLeftMouseButtonDown();
110 }
111 }
112}
113
114int CGameWindow::GetRenderDelay()
115{

Callers 5

PrepareContentMethod · 0.80
PrepareContentMethod · 0.80
PrepareContentMethod · 0.80
PrepareContentMethod · 0.80
PrepareContentMethod · 0.80

Calls 3

InitLeftMethod · 0.80
SelectObjectMethod · 0.45
OnLeftMouseButtonDownMethod · 0.45

Tested by

no test coverage detected