|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.input.events.InputEvent
org.jagatoo.input.events.KeyboardEvent
public abstract class KeyboardEvent
Stores the details associated with a keyboard event.
| Nested Class Summary | |
|---|---|
static class |
KeyboardEvent.SubType
|
| Nested classes/interfaces inherited from class org.jagatoo.input.events.InputEvent |
|---|
InputEvent.Type |
| Constructor Summary | |
|---|---|
protected |
KeyboardEvent(KeyboardEvent.SubType subType)
Creates a new KeyboardEvent with the default settings |
protected |
KeyboardEvent(Keyboard keyboard,
KeyboardEvent.SubType subType,
Key key,
int modifierMask,
long when,
long lastWhen)
Initialises the new KeyboardEvent using the given values. |
| Method Summary | |
|---|---|
Key |
getKey()
The key related to this event. |
Keyboard |
getKeyboard()
The Keyboarde, that caused the event. |
int |
getKeyCode()
The key related to this event. |
int |
getModifierMask()
|
KeyboardEvent.SubType |
getSubType()
The state of the key (true if it is pressed, false if it isn't). |
protected void |
set(Keyboard keyboard,
Key key,
int modifierMask,
long when,
long lastWhen)
Initialises this KeyboardEvent using the given values. |
java.lang.String |
toString()
|
| Methods inherited from class org.jagatoo.input.events.InputEvent |
|---|
getComponent, getLastWhen, getType, getWhen, set, set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected KeyboardEvent(KeyboardEvent.SubType subType)
protected KeyboardEvent(Keyboard keyboard,
KeyboardEvent.SubType subType,
Key key,
int modifierMask,
long when,
long lastWhen)
keyboard - subType - the kind of KeyboardEventkey - the key whose state changedmodifierMask - the mask of all held modifierswhen - the timestamp of the KeyboardEventlastWhen - | Method Detail |
|---|
public final KeyboardEvent.SubType getSubType()
public final Keyboard getKeyboard()
public final Key getKey()
public final int getModifierMask()
public final int getKeyCode()
KeyCodepublic java.lang.String toString()
toString in class InputEventInputEvent as a String.
protected void set(Keyboard keyboard,
Key key,
int modifierMask,
long when,
long lastWhen)
keyboard - key - the key whose state changedmodifierMask - the mask of all held modifierswhen - the timestamp of the KeyboardEventlastWhen -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||