Skip to content

Commit

Permalink
Mouse fixes
Browse files Browse the repository at this point in the history
Double Click when moving fix, maybe more accurate mouse sensitivity
  • Loading branch information
Verschwiegener authored Oct 25, 2021
1 parent aad2dc5 commit ae960ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/org/lwjgl/input/Mouse.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public void invoke(long l, double v, double v1) {
last_y = poll_yPos;
poll_xPos = (int) v;
poll_yPos = (int) (Display.getHeight() - v1);
current_dx = ((poll_xPos - last_x) * 8);
current_dy = ((poll_yPos - last_y) * 8);
current_dx = (int) ((poll_xPos - last_x) * 6.2);
current_dy = (int) ((poll_yPos - last_y) * 6.2);
pollNeed = true;
}
}
Expand Down Expand Up @@ -101,6 +101,9 @@ public static void createEvent(){
}
readBuffer.putInt(poll_scrollY);
readBuffer.flip();
//To prevent doubleclick when moving
poll_button = -1;
poll_action = 0;
}


Expand Down

0 comments on commit ae960ee

Please sign in to comment.