MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / OnMouseClick

Method OnMouseClick

GTE/Applications/Window3.cpp:98–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98bool Window3::OnMouseClick(MouseButton button, MouseState state, int32_t x, int32_t y, uint32_t)
99{
100 if (button == MOUSE_LEFT)
101 {
102 if (state == MOUSE_DOWN)
103 {
104 mTrackBall.SetActive(true);
105 mTrackBall.SetInitialPoint(x, mYSize - 1 - y);
106 }
107 else
108 {
109 mTrackBall.SetActive(false);
110 }
111
112 return true;
113 }
114
115 return false;
116}
117
118bool Window3::OnMouseMotion(MouseButton button, int32_t x, int32_t y, uint32_t)
119{

Callers 1

WindowProcedureMethod · 0.45

Calls 2

SetInitialPointMethod · 0.80
SetActiveMethod · 0.45

Tested by

no test coverage detected