rcore_desktop_glfw.c : SetMousePosition() previous pos
This commit is contained in:
parent
d4f3e1af58
commit
865c66b5bd
|
|
@ -1160,9 +1160,9 @@ void SetMousePosition(int x, int y)
|
||||||
|
|
||||||
// Update the metrics :
|
// Update the metrics :
|
||||||
|
|
||||||
CORE.Input.Mouse.currentPosition = (Vector2){ mouseX, mouseY };
|
|
||||||
CORE.Input.Mouse.previousPosition = CORE.Input.Mouse.currentPosition;
|
CORE.Input.Mouse.previousPosition = CORE.Input.Mouse.currentPosition;
|
||||||
|
CORE.Input.Mouse.currentPosition = (Vector2){ mouseX, mouseY };
|
||||||
|
|
||||||
// And we're done :
|
// And we're done :
|
||||||
|
|
||||||
glfwSetCursorPos(platform.handle, mouseX, mouseY);
|
glfwSetCursorPos(platform.handle, mouseX, mouseY);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user