|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
com.threerings.opengl.gui.event.Event
com.threerings.opengl.gui.event.InputEvent
public class InputEvent
Contains information common to all input (keyboard and mouse) events. This includes the state of the modifier keys at the time the event was generated.
| Field Summary | |
|---|---|
protected int |
_modifiers
|
static int |
ALT_DOWN_MASK
A modifier mask indicating that the alt key was down at the time this event was generated. |
static int |
BUTTON1_DOWN_MASK
A modifier mask indicating that the first mouse button was down at the time this event was generated. |
static int |
BUTTON2_DOWN_MASK
A modifier mask indicating that the second mouse button was down at the time this event was generated. |
static int |
BUTTON3_DOWN_MASK
A modifier mask indicating that the third mouse button was down at the time this event was generated. |
static int |
CTRL_DOWN_MASK
A modifier mask indicating that the control key was down at the time this event was generated. |
static int |
META_DOWN_MASK
A modifier mask indicating that the meta key (Windows Logo key on some keyboards) was down at the time this event was generated. |
static int |
SHIFT_DOWN_MASK
A modifier mask indicating that the shift key was down at the time this event was generated. |
| Fields inherited from class com.threerings.opengl.gui.event.Event |
|---|
_consumed, _when |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
protected |
InputEvent(Object source,
long when,
int modifiers)
|
| Method Summary | |
|---|---|
int |
getModifiers()
Returns the modifier mask associated with this event. |
boolean |
isAltDown()
Determines whether the alt key was down at the time this event was generated. |
boolean |
isControlDown()
Determines whether the control key was down at the time this event was generated. |
boolean |
isMetaDown()
Determines whether the meta key was down at the time this event was generated. |
boolean |
isShiftDown()
Determines whether the shift key was down at the time this event was generated. |
protected void |
toString(StringBuilder buf)
|
| Methods inherited from class com.threerings.opengl.gui.event.Event |
|---|
consume, dispatch, getWhen, isConsumed, propagateUpHierarchy, toString |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int BUTTON1_DOWN_MASK
public static final int BUTTON2_DOWN_MASK
public static final int BUTTON3_DOWN_MASK
public static final int SHIFT_DOWN_MASK
public static final int CTRL_DOWN_MASK
public static final int ALT_DOWN_MASK
public static final int META_DOWN_MASK
protected int _modifiers
| Constructor Detail |
|---|
protected InputEvent(Object source,
long when,
int modifiers)
| Method Detail |
|---|
public int getModifiers()
public boolean isShiftDown()
public boolean isControlDown()
public boolean isAltDown()
public boolean isMetaDown()
protected void toString(StringBuilder buf)
toString in class Event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||