Package playn.core
Class Keyboard.KeyEvent
java.lang.Object
playn.core.Event
playn.core.Event.Input
playn.core.Keyboard.Event
playn.core.Keyboard.KeyEvent
- Enclosing class:
Keyboard
An event dispatched for key press/release.
-
Nested Class Summary
Nested classes/interfaces inherited from class playn.core.Event
Event.Input, Event.XY -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanWhether the key is down or up.final KeyThe key that triggered this event, e.g.Fields inherited from class playn.core.Event.Input
flags, timeFields inherited from class playn.core.Event
F_PREVENT_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class playn.core.Event.Input
clearFlag, isAltDown, isCtrlDown, isMetaDown, isSet, isShiftDown, modifierFlags, setFlag, toString, updateFlag
-
Field Details
-
key
The key that triggered this event, e.g.Key.A, etc. -
down
public final boolean downWhether the key is down or up.
-
-
Constructor Details
-
KeyEvent
-