Skip to content

Commit

Permalink
Workaround to mouse shifting
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Sep 1, 2024
1 parent 042bc3d commit 3cd03f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/lwjgl/input/Mouse.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ public static void addMoveEvent(double mouseX, double mouseY) {
ignoreNextMove--;
return;
}
float scale = Display.getPixelScaleFactor();
/*float scale = Display.getPixelScaleFactor();
mouseX *= scale;
mouseY *= scale;
mouseY *= scale;*/
dx += (int) mouseX - latestX;
dy += Display.getHeight() - (int) mouseY - latestY;
latestX = (int) mouseX;
Expand Down

0 comments on commit 3cd03f3

Please sign in to comment.