Skip to content

Commit

Permalink
Update Mouse.java
Browse files Browse the repository at this point in the history
  • Loading branch information
artdeell authored Nov 19, 2024
1 parent b306ad9 commit c90ffe1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +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));
Expand Down Expand Up @@ -658,4 +659,4 @@ public static boolean isInsideWindow() {
interface EmptyCursorGrabListener {
void onGrab(boolean grabbing);
}
}
}

0 comments on commit c90ffe1

Please sign in to comment.