public interface Mouse
Modifier and Type | Method and Description |
---|---|
void |
doClick(int click)
Perform a click.
|
void |
doClickAt(int click,
int x,
int y)
Perform a click at specified coordinate.
|
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 is pressed.
|
boolean |
hasClickedOnce(int click)
Check if click is pressed once only (ignore 'still clicked').
|
void |
lock()
Lock mouse at its center.
|
void |
lock(int x,
int y)
Lock mouse at specified location.
|
boolean |
moved()
Check if mouse moved.
|
void |
setCenter(int x,
int y)
Set mouse center for lock operation.
|
void |
setConfig(Config config)
Set the config.
|
void |
update()
Update the mouse.
|
void update()
void lock()
void lock(int x, int y)
x
- The location x.y
- The location y.void doClick(int click)
click
- The click to perform.void doClickAt(int click, int x, int y)
click
- The click to perform.x
- The location x.y
- The location y.void setConfig(Config config)
config
- The config.void setCenter(int x, int y)
x
- The location x.y
- The location y.int getMouseClick()
int getOnScreenX()
int getOnScreenY()
int getOnWindowX()
int getOnWindowY()
int getMoveX()
int getMoveY()
boolean hasClicked(int click)
click
- The click to check.boolean hasClickedOnce(int click)
click
- The click to check.boolean moved()
true
if moved, false
else.Copyright © 2014 Byron 3D Games Studio. All rights reserved.