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

Method OnMouseMotion

GTE/Applications/Window3.cpp:118–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118bool Window3::OnMouseMotion(MouseButton button, int32_t x, int32_t y, uint32_t)
119{
120 if (button == MOUSE_LEFT && mTrackBall.GetActive())
121 {
122 mTrackBall.SetFinalPoint(x, mYSize - 1 - y);
123 mPVWMatrices.Update();
124 return true;
125 }
126
127 return false;
128}
129
130

Callers 1

WindowProcedureMethod · 0.45

Calls 3

SetFinalPointMethod · 0.80
GetActiveMethod · 0.45
UpdateMethod · 0.45

Tested by

no test coverage detected