mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-20 05:44:03 +00:00
Fix Mac Mouse behaviour where mouse is centred everytime Mouse.setGrabbed(boolean) is called.
This commit is contained in:
parent
0738e6985c
commit
7a6a74541f
1 changed files with 5 additions and 3 deletions
|
|
@ -54,9 +54,11 @@ final class MacOSXMouseEventQueue extends MouseEventQueue {
|
|||
}
|
||||
|
||||
public void setGrabbed(boolean grab) {
|
||||
super.setGrabbed(grab);
|
||||
warpCursor();
|
||||
grabMouse(grab);
|
||||
if (is_grabbed != grab) {
|
||||
super.setGrabbed(grab);
|
||||
warpCursor();
|
||||
grabMouse(grab);
|
||||
}
|
||||
}
|
||||
|
||||
private static synchronized void grabMouse(boolean grab) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue