| 56 | } |
| 57 | |
| 58 | static void keyboardCallback(GLFWwindow* pGlfwWindow, int key, int scanCode, int action, int modifiers) |
| 59 | { |
| 60 | KeyboardEvent event; |
| 61 | if (prepareKeyboardEvent(key, action, modifiers, event)) |
| 62 | { |
| 63 | Window* pWindow = (Window*)glfwGetWindowUserPointer(pGlfwWindow); |
| 64 | if (pWindow != nullptr) |
| 65 | { |
| 66 | pWindow->mpCallbacks->handleKeyboardEvent(event); |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | static void charInputCallback(GLFWwindow* pGlfwWindow, uint32_t input) |
| 72 | { |
nothing calls this directly
no test coverage detected