| 237 | } |
| 238 | |
| 239 | void cursor_position_callback(GLFWwindow *window, double xpos, double ypos) |
| 240 | { |
| 241 | if (auto *platform = reinterpret_cast<Platform *>(glfwGetWindowUserPointer(window))) |
| 242 | { |
| 243 | platform->input_event(MouseButtonInputEvent{ |
| 244 | MouseButton::Unknown, |
| 245 | MouseAction::Move, |
| 246 | static_cast<float>(xpos), |
| 247 | static_cast<float>(ypos)}); |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | void mouse_button_callback(GLFWwindow *window, int button, int action, int /*mods*/) |
| 252 | { |
nothing calls this directly
no test coverage detected