mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-10-09 07:19:53 +02:00
Hopefully fixed MacOS cursor not calling ImGui when moved through software
This commit is contained in:
@@ -224,7 +224,9 @@ namespace backend {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setMouseScreenPos(double x, double y) {
|
void setMouseScreenPos(double x, double y) {
|
||||||
|
// Tell GLFW to move the cursor and then manually fire the event
|
||||||
glfwSetCursorPos(window, x, y);
|
glfwSetCursorPos(window, x, y);
|
||||||
|
ImGui_ImplGlfw_CursorPosCallback(window, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
int renderLoop() {
|
int renderLoop() {
|
||||||
@@ -300,4 +302,4 @@ namespace backend {
|
|||||||
|
|
||||||
return 0; // TODO: Int really needed?
|
return 0; // TODO: Int really needed?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user