This commit is contained in:
Kovid Goyal
2025-03-04 09:49:34 +05:30
parent 0339d59851
commit ac6c652a4d
2 changed files with 4 additions and 4 deletions

6
glfw/input.c vendored
View File

@@ -728,10 +728,10 @@ GLFWAPI void glfwSetInputMode(GLFWwindow* handle, int mode, int value)
window->cursorMode = value;
_glfwPlatformGetCursorPos(window,
&window->virtualCursorPosX,
&window->virtualCursorPosY);
double x, y;
_glfwPlatformGetCursorPos(window, &x, &y);
_glfwPlatformSetCursorMode(window, value);
_glfwInputCursorPos(window, x, y);
}
else if (mode == GLFW_STICKY_KEYS)
{