mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 06:53:59 +00:00
Fix cursor jumping after Mouse.setGrabbed()
This commit is contained in:
parent
c8d5fe296b
commit
0b9d221f9c
2 changed files with 3 additions and 3 deletions
|
|
@ -214,9 +214,9 @@ public class Mouse {
|
|||
height = Display.getDisplayMode().getHeight();
|
||||
x = width / 2;
|
||||
y = height / 2;
|
||||
readBuffer.clear();
|
||||
readBuffer.position(readBuffer.limit());
|
||||
if (!isGrabbed() && (Cursor.getCapabilities() & Cursor.CURSOR_ONE_BIT_TRANSPARENCY) != 0)
|
||||
setCursorPosition(x, y);
|
||||
setCursorPosition(x, y);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue