| 82 | } |
| 83 | |
| 84 | static void mouseMoveCallback(GLFWwindow* pGlfwWindow, double mouseX, double mouseY) |
| 85 | { |
| 86 | Window* pWindow = (Window*)glfwGetWindowUserPointer(pGlfwWindow); |
| 87 | if (pWindow != nullptr) |
| 88 | { |
| 89 | // Prepare the mouse data |
| 90 | MouseEvent event; |
| 91 | event.type = MouseEvent::Type::Move; |
| 92 | event.pos = calcMousePos(mouseX, mouseY, pWindow->getMouseScale()); |
| 93 | event.screenPos = {mouseX, mouseY}; |
| 94 | event.wheelDelta = float2(0, 0); |
| 95 | |
| 96 | pWindow->mpCallbacks->handleMouseEvent(event); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | static void mouseButtonCallback(GLFWwindow* pGlfwWindow, int button, int action, int modifiers) |
| 101 | { |
nothing calls this directly
no test coverage detected