MCPcopy Create free account
hub / github.com/LibreVR/Revive / MouseButtonCallback

Method MouseButtonCallback

Revive/ProfileManager.cpp:205–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void ProfileManager::MouseButtonCallback(GLFWwindow* window, int button, int action, int mods)
206{
207 if (button == GLFW_MOUSE_BUTTON_LEFT && action == GLFW_PRESS && !MicroProfileIsDrawing())
208 MicroProfileSetDisplayMode(1);
209
210 MicroProfileMouseButton(glfwGetMouseButton(window, GLFW_MOUSE_BUTTON_LEFT), glfwGetMouseButton(window, GLFW_MOUSE_BUTTON_RIGHT));
211}
212
213void ProfileManager::CursorPosCallback(GLFWwindow* window, double xpos, double ypos)
214{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected