Hopefully fixed MacOS cursor not calling ImGui when moved through software

pull/649/head
AlexandreRouma 2022-02-17 23:27:40 +01:00 zatwierdzone przez GitHub
rodzic b5cbafb01d
commit f46fa2157b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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?
} }
} }