| 208 | |
| 209 | |
| 210 | static void scrollCallback(GLFWwindow* win, double x, double y) { |
| 211 | contextSet((Context*) glfwGetWindowUserPointer(win)); |
| 212 | math::Vec scrollDelta = math::Vec(x, y); |
| 213 | #if defined ARCH_MAC |
| 214 | scrollDelta = scrollDelta.mult(10.0); |
| 215 | #else |
| 216 | scrollDelta = scrollDelta.mult(50.0); |
| 217 | #endif |
| 218 | |
| 219 | APP->event->handleScroll(APP->window->internal->lastMousePos, scrollDelta); |
| 220 | } |
| 221 | |
| 222 | |
| 223 | static void charCallback(GLFWwindow* win, unsigned int codepoint) { |
nothing calls this directly
no test coverage detected