mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 23:44:06 +00:00
Make sure that the cursor position doesn't jump when switching grab mode
This commit is contained in:
parent
57a8067a88
commit
63532ca647
5 changed files with 90 additions and 5 deletions
|
|
@ -570,6 +570,10 @@ public class Mouse {
|
|||
isGrabbed = grab;
|
||||
if (isCreated()) {
|
||||
implementation.grabMouse(isGrabbed);
|
||||
// Get latest values from native side
|
||||
poll();
|
||||
event_x = x;
|
||||
event_y = y;
|
||||
resetMouse();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue