mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-03-31 10:35:00 +02:00
center mouse as cursor is
This commit is contained in:
parent
7427ba13f6
commit
70e36d8058
|
|
@ -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…
Reference in a new issue