Added Mouse.setCursorPosition(x, y)

This commit is contained in:
Elias Naur 2005-04-12 11:45:06 +00:00
parent f3d3ce7ce5
commit 61ddd625df
6 changed files with 42 additions and 4 deletions

View file

@ -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);