diff --git a/core/backends/glfw/backend.cpp b/core/backends/glfw/backend.cpp index c439b459..542e94f7 100644 --- a/core/backends/glfw/backend.cpp +++ b/core/backends/glfw/backend.cpp @@ -224,7 +224,9 @@ namespace backend { } void setMouseScreenPos(double x, double y) { + // Tell GLFW to move the cursor and then manually fire the event glfwSetCursorPos(window, x, y); + ImGui_ImplGlfw_CursorPosCallback(window, x, y); } int renderLoop() { @@ -300,4 +302,4 @@ namespace backend { return 0; // TODO: Int really needed? } -} \ No newline at end of file +}