The mouse pos should be initialized always

This commit is contained in:
Toni Helenius 2018-08-13 19:09:08 +03:00 committed by Stephen Gold
parent 54a98f13e5
commit 8ed4c222df

View File

@ -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;