From f46fa2157bed6ec082e1c5887714ce15c4242a51 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Thu, 17 Feb 2022 23:27:40 +0100 Subject: [PATCH] Hopefully fixed MacOS cursor not calling ImGui when moved through software --- core/backends/glfw/backend.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 +}