public class NativeMouse
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
enter
Mouse cursor enters the window.
|
static int |
idle
No mouse event occured.
|
static int |
lClick
Left mouse button down and up in a quick sequence.
|
static int |
lDClick
Left mouse button down, up, down, up in a quick sequence.
|
static int |
leave
Mouse cursor leaves the window.
|
static int |
lPress
Left mouse button down.
|
static int |
lRelease
Left mouse button up.
|
static int |
move
Mouse cursor is moved inside the window.
|
static int |
rClick
Right mouse button down and up in a quick sequence.
|
static int |
rDClick
Right mouse button down, up, down, up in a quick sequence.
|
static int |
rPress
Right mouse button down.
|
static int |
rRelease
Right mouse button up.
|
Constructor and Description |
---|
NativeMouse()
Creates a NativeMouse instance and intializes event type and cursor position.
|
Modifier and Type | Method and Description |
---|---|
int |
getEvent()
Retrieve current event type as integer.
|
int |
getX()
Retrieve the current x-position of the mouse cursor with respect to the upper left corner in pixels.
|
int |
getY()
Retrieve the current y-position of the mouse cursor with respect to the upper left corner in pixels.
|
public static final int idle
public static final int lPress
public static final int lRelease
public static final int lClick
public static final int lDClick
public static final int rPress
public static final int rRelease
public static final int rClick
public static final int rDClick
public static final int enter
public static final int leave
public static final int move
public NativeMouse()
public int getEvent()
public int getX()
public int getY()