The mouse pos should be initialized always
This commit is contained in:
parent
54a98f13e5
commit
8ed4c222df
@ -148,14 +148,6 @@ public class GlfwMouseInput implements MouseInput {
|
||||
int x = (int) Math.round(xpos);
|
||||
int y = currentHeight - (int) Math.round(ypos);
|
||||
|
||||
if (mouseX == 0) {
|
||||
mouseX = x;
|
||||
}
|
||||
|
||||
if (mouseY == 0) {
|
||||
mouseY = y;
|
||||
}
|
||||
|
||||
xDelta = x - mouseX;
|
||||
yDelta = y - mouseY;
|
||||
mouseX = x;
|
||||
|
Loading…
x
Reference in New Issue
Block a user