MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / mouseInputMotion

Function mouseInputMotion

Samples/NiViewer/MouseInput.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void mouseInputMotion(int x, int y)
61{
62 g_MouseInput.LastLocation.X = x;
63 g_MouseInput.LastLocation.Y = y;
64
65 if (g_MouseInput.pCursorCallback != NULL)
66 g_MouseInput.pCursorCallback(g_MouseInput.LastLocation);
67
68 if (g_MouseInput.nSelectionState == SELECTION_ACTIVE)
69 mouseInputCallSelection();
70}
71
72void mouseInputButton(int button, int state, int x, int y)
73{

Callers 1

MotionCallbackFunction · 0.85

Calls 1

mouseInputCallSelectionFunction · 0.85

Tested by

no test coverage detected