From 584387bfa5296d18d83e90aa173a133517d238e4 Mon Sep 17 00:00:00 2001 From: Maksim Belov <45949002+artdeell@users.noreply.github.com> Date: Tue, 19 Nov 2024 23:01:04 +0300 Subject: [PATCH] Update Mouse.java --- modules/lwjgl/lwjglx/src/main/java/org/lwjgl/input/Mouse.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/lwjgl/lwjglx/src/main/java/org/lwjgl/input/Mouse.java b/modules/lwjgl/lwjglx/src/main/java/org/lwjgl/input/Mouse.java index f8768f33fa..c29e1ba459 100644 --- a/modules/lwjgl/lwjglx/src/main/java/org/lwjgl/input/Mouse.java +++ b/modules/lwjgl/lwjglx/src/main/java/org/lwjgl/input/Mouse.java @@ -356,8 +356,7 @@ public static void poll() { absolute_x = x = poll_coord1; absolute_y = y = poll_coord2; } - System.out.println("dx: " + dx + " dy: " + dy + " x: "+ x +" y: " + y+" grabbed: "+isGrabbed() +" pc1: "+poll_coord1+" pc2: "+poll_coord2); - + if(clipMouseCoordinatesToWindow) { x = Math.min(Display.getWidth() - 1, Math.max(0, x)); y = Math.min(Display.getHeight() - 1, Math.max(0, y));