The mouse pos should be initialized always

v3.2
Toni Helenius 6 years ago committed by Stephen Gold
parent 54a98f13e5
commit 8ed4c222df
  1. 8
      jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl/GlfwMouseInput.java

@ -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…
Cancel
Save