public class MouseEvent extends Event
| Modifier | Constructor and Description |
|---|---|
protected |
MouseEvent() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDelta()
Indicates how many lines should be scrolled for each unit the user rotates the mouse wheel.
|
int |
getLocalX()
The horizontal coordinate at which the event occurred relative to the containing sprite.
|
int |
getLocalY()
The vertical coordinate at which the event occurred relative to the containing sprite.
|
InteractiveObject |
getRelatedObject()
A reference to a display list object that is related to the event.
|
int |
getStageX()
The horizontal coordinate at which the event occurred in global Stage coordinates.
|
int |
getStageY()
The vertical coordinate at which the event occurred in global Stage coordinates.
|
boolean |
isAltKey()
Indicates whether the Alt key is active (true) or inactive (false).
|
boolean |
isButtonDown()
Indicates whether the primary mouse button is pressed (true) or not (false).
|
boolean |
isCtrlKey()
On Windows, indicates whether the Ctrl key is active (true) or inactive (false).
|
boolean |
isShiftKey()
Indicates whether the Shift key is active (true) or inactive (false).
|
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getType, isDefaultPrevented, preventDefault, stopImmediatePropagation, stopPropagationpublic final boolean isAltKey()
public final boolean isButtonDown()
public final boolean isCtrlKey()
public final int getDelta()
public final int getLocalX()
public final int getLocalY()
public final InteractiveObject getRelatedObject()
public final boolean isShiftKey()
public final int getStageX()
public final int getStageY()
Copyright © 2013. All Rights Reserved.