mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-21 06:14:10 +00:00
Improved fullscreen pointer handling
This commit is contained in:
parent
270380194f
commit
644bbc9ac0
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ static void setCursorPos(int x, int y) {
|
|||
accum_dy += dy;
|
||||
last_x = x;
|
||||
last_y = y;
|
||||
if (pointer_grabbed) {
|
||||
if (shouldGrab()) {
|
||||
putMouseEventWithCoords(-1, 0, dx, dy, 0);
|
||||
} else {
|
||||
putMouseEventWithCoords(-1, 0, x, y, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue