mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 22:45:50 +00:00
center mouse as cursor is
This commit is contained in:
parent
7427ba13f6
commit
70e36d8058
1 changed files with 2 additions and 0 deletions
|
|
@ -177,6 +177,8 @@ public class Mouse {
|
|||
if (currentCursor != null) {
|
||||
nSetNativeCursor(currentCursor.getHandle());
|
||||
currentCursor.setTimeout();
|
||||
x = Window.getWidth() / 2;
|
||||
y = Window.getHeight() / 2;
|
||||
} else {
|
||||
nSetNativeCursor(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue