public interface Mouse
Modifier and Type | Field and Description |
---|---|
static int |
LEFT |
static int |
MIDDLE |
static int |
RIGHT |
Modifier and Type | Method and Description |
---|---|
int |
getMouseClick()
Get current pressed click.
|
int |
getMoveX()
Get mouse horizontal move.
|
int |
getMoveY()
Get mouse vertical move.
|
int |
getOnScreenX()
Get location on screen x.
|
int |
getOnScreenY()
Get location on screen y.
|
int |
getOnWindowX()
Get location on window x.
|
int |
getOnWindowY()
Get location on window y.
|
boolean |
hasClicked(int click)
Check if click if pressed.
|
void |
lock()
Lock mouse at its center.
|
void |
lock(int x,
int y)
Lock mouse at specified location.
|
void |
setCenter(int x,
int y)
Set mouse center for lock operation.
|
void |
update()
Update mouse.
|
static final int LEFT
static final int MIDDLE
static final int RIGHT
boolean hasClicked(int click)
click
- click to check.int getMouseClick()
int getOnScreenX()
int getOnScreenY()
int getOnWindowX()
int getOnWindowY()
int getMoveX()
int getMoveY()
void setCenter(int x, int y)
x
- location x.y
- location y.void lock()
void lock(int x, int y)
x
- location x.y
- location y.void update()