| 69 | } |
| 70 | |
| 71 | static void charInputCallback(GLFWwindow* pGlfwWindow, uint32_t input) |
| 72 | { |
| 73 | KeyboardEvent event; |
| 74 | event.type = KeyboardEvent::Type::Input; |
| 75 | event.codepoint = input; |
| 76 | |
| 77 | Window* pWindow = (Window*)glfwGetWindowUserPointer(pGlfwWindow); |
| 78 | if (pWindow != nullptr) |
| 79 | { |
| 80 | pWindow->mpCallbacks->handleKeyboardEvent(event); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | static void mouseMoveCallback(GLFWwindow* pGlfwWindow, double mouseX, double mouseY) |
| 85 | { |
nothing calls this directly
no test coverage detected