mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-18 04:44:08 +00:00
Added Mouse.setCursorPosition(x, y)
This commit is contained in:
parent
f3d3ce7ce5
commit
61ddd625df
6 changed files with 42 additions and 4 deletions
|
|
@ -268,6 +268,13 @@ final class LinuxDisplay implements DisplayImplementation {
|
|||
}
|
||||
private static native int nReadMouse(IntBuffer buffer, int buffer_position);
|
||||
|
||||
public void setCursorPosition(int x, int y) {
|
||||
lockAWT();
|
||||
nSetCursorPosition(x, y);
|
||||
unlockAWT();
|
||||
}
|
||||
private native void nSetCursorPosition(int x, int y);
|
||||
|
||||
public void grabMouse(boolean grab) {
|
||||
lockAWT();
|
||||
nGrabMouse(grab);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue