Uses of Class
playn.core.Keyboard.Event
-
Uses of Keyboard.Event in playn.core
Modifier and TypeClassDescriptionstatic class
An event dispatched for key press/release.static class
An event dispatched when a printable character is typed.Modifier and TypeFieldDescriptionInput.keyboardEvents
A signal via which keyboard events are emitted.Modifier and TypeMethodDescriptionstatic Function<Keyboard.Event,
Keyboard.KeyEvent> Returns a collector function for key events forkey
.Modifier and TypeMethodDescriptionstatic Keyboard.KeyEvent
Keyboard.isKey
(Key key, Keyboard.Event event) A collector function for key events forkey
.static Keyboard.KeyEvent
Keyboard.keyEvents
(Keyboard.Event event) Checks whetherevent
is aKeyEvent
and returns it (casted appropriately) if so.void
Keyboard.KeySlot.onEmit
(Keyboard.Event event) void
Keyboard.TypedSlot.onEmit
(Keyboard.Event event) static Keyboard.TypedEvent
Keyboard.typedEvents
(Keyboard.Event event) Checks whetherevent
is aTypedEvent
and returns it (casted appropriately) if so.