MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / OnMouseDown

Method OnMouseDown

ogsr_engine/xrGame/ui/UI3tButton.cpp:50–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50bool CUI3tButton::OnMouseDown(int mouse_btn)
51{
52 if (m_bCheckMode)
53 {
54 if (mouse_btn == MOUSE_1)
55 {
56 if (m_eButtonState == BUTTON_NORMAL)
57 m_eButtonState = BUTTON_PUSHED;
58 else
59 m_eButtonState = BUTTON_NORMAL;
60 }
61 GetMessageTarget()->SendMessage(this, BUTTON_CLICKED, NULL);
62 return true;
63 }
64 else
65 return CUIButton::OnMouseDown(mouse_btn);
66}
67
68void CUI3tButton::OnFocusLost()
69{

Callers

nothing calls this directly

Calls 1

SendMessageMethod · 0.45

Tested by

no test coverage detected