mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-25 02:18:30 +01:00
Hopefully fixed MacOS cursor not calling ImGui when moved through software
This commit is contained in:
parent
b5cbafb01d
commit
f46fa2157b
@ -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?
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user