Hopefully fixed MacOS cursor not calling ImGui when moved through software

This commit is contained in:
AlexandreRouma 2022-02-17 23:27:40 +01:00 committed by GitHub
parent b5cbafb01d
commit f46fa2157b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {