From 3cd03f3e092fda59fd5122720ff3842673fa8039 Mon Sep 17 00:00:00 2001 From: arcade_kappa Date: Sun, 1 Sep 2024 16:43:54 +0800 Subject: [PATCH] Workaround to mouse shifting --- src/main/java/org/lwjgl/input/Mouse.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/lwjgl/input/Mouse.java b/src/main/java/org/lwjgl/input/Mouse.java index 472f2f9a8..6f0629015 100644 --- a/src/main/java/org/lwjgl/input/Mouse.java +++ b/src/main/java/org/lwjgl/input/Mouse.java @@ -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;