KeyboardEventDispatcher

abstract class KeyboardEventDispatcher : PersistentEventDispatcher<KeyboardTriggerAction, KeyEvent>

An event dispatcher in the context of a keyboard.

Constructors

Link copied to clipboard
fun KeyboardEventDispatcher()

Functions

Link copied to clipboard
abstract fun isHeld(key: KeyCode): Boolean

Returns whether a given key is being held or not at the time of the call.

Link copied to clipboard
open operator override fun set(trigger: KeyboardTriggerAction, job: (event: KeyEvent) -> Unit)

Adds a job to be performed whenever an event triggers the dispatcher through the listener.

Properties

Link copied to clipboard
abstract override val listener: KeyboardActionListener

The listener bound to this dispatcher.

Inheritors

Link copied to clipboard