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
Modifier and TypeFieldDescriptionfinal boolean
Whether the key is down or up.final Key
The key that triggered this event, e.g.Fields inherited from class playn.core.Event.Input
flags, time
Fields inherited from class playn.core.Event
F_PREVENT_DEFAULT
-
Constructor Summary
-
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
-