public class SurfacePointerEvent extends SurfaceEvent implements IEventModifiers
Modifier and Type | Field and Description |
---|---|
static int |
BUTTON_4
A possible bit in the "buttons" field.
|
static int |
BUTTON_5
A possible bit in the "buttons" field.
|
static int |
BUTTON_LEFT
A possible bit in the "buttons" field.
|
static int |
BUTTON_MIDDLE
A possible bit in the "buttons" field.
|
static int |
BUTTON_PRESS
The event type for a pen or mouse down event - the same as PEN_DOWN
|
static int |
BUTTON_RIGHT
A possible bit in the "buttons" field.
|
static int |
BUTTON_UP
The event type for a pen or mouse up event - the same as PEN_UP
|
int |
buttons
The state of the button keys when the event occured.
|
int |
modifiers
The state of the modifier keys when the event occured.
|
static int |
MOUSE_DRAG
The event type for a pen or mouse drag event - the same as PEN_DRAG
|
static int |
MOUSE_HOVER_OVER
The event type for when the mouse is hovering over a control.
|
static int |
MOUSE_MOVE
The event type for a pen or mouse move event - the same as PEN_MOVE
|
static int |
MOUSE_STOP_HOVER
The event type for when the mouse is no longer hovering over a control.
|
static int |
MOVED_OFF
The event type for a pen or mouse move off event - the same as PEN_MOVED_OFF
|
static int |
MOVED_ON
The event type for a pen or mouse move on event - the same as PEN_MOVED_ON
|
static int |
PEN_DOWN
The event type for a pen or mouse down event - the same as BUTTON_PRESS
|
static int |
PEN_DRAG
The event type for a pen or mouse drag event - the same as MOUSE_DRAG
|
static int |
PEN_MOVE
The event type for a pen or mouse move event - the same as MOUSE_MOVE
|
static int |
PEN_MOVED_OFF
The event type for a pen or mouse move off event - the same as MOVED_OFF
|
static int |
PEN_MOVED_ON
The event type for a pen or mouse move on event - the same as MOVED_ON
|
static int |
PEN_UP
The event type for a pen or mouse up event - the same as BUTTON_UP
|
static int |
SCROLL_DOWN |
static int |
SCROLL_UP |
static int |
SWIPED
This is called if the user makes a quick swipe (and release) across the screen.
|
int |
swipeStartX |
int |
swipeStartY |
static int |
SWIPING
This is called if the user is swiping the finger slowly across the screen.
|
static int |
SWIPING_ENDED
This is called if the user was swiping the finger slowly across the screen and has lifted the finger while still
moving slowly.
|
int |
x
The x location of the event.
|
int |
y
The y location of the event.
|
ALT, CONDITIONAL, CONTROL, DOUBLE_PRESS, FROM_INPUT_METHOD, FROM_OTHER_WINDOW, INVISIBLE, MIDDLE_BUTTON, MULTICHARACTER, ONLY, POST_TO_BACK, REPEATED, REPLACEMENT, RIGHT_BUTTON, SHIFT, SPECIAL, TRANSFERRED_PRESS
Constructor and Description |
---|
SurfacePointerEvent() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isSurfacePointerEvent(int type) |
getSurface
clearPostData, getPostData, isReused, setPostData, setReused
_getFieldType, _getSetField, cache, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNew
public static final int PEN_DOWN
public static final int BUTTON_PRESS
public static final int PEN_MOVE
public static final int MOUSE_MOVE
public static final int BUTTON_UP
public static final int PEN_UP
public static final int MOUSE_DRAG
public static final int PEN_DRAG
public static final int MOVED_ON
public static final int PEN_MOVED_ON
public static final int MOVED_OFF
public static final int PEN_MOVED_OFF
public static final int MOUSE_HOVER_OVER
public static final int MOUSE_STOP_HOVER
public static final int SCROLL_UP
public static final int SCROLL_DOWN
public static final int SWIPING
public static final int SWIPING_ENDED
public static final int SWIPED
public static final int BUTTON_LEFT
public static final int BUTTON_RIGHT
public static final int BUTTON_MIDDLE
public static final int BUTTON_4
public static final int BUTTON_5
public int x
public int y
public int swipeStartX
public int swipeStartY
public int modifiers
IKeys
public int buttons