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