SimpleKeyboardEventDispatcher

open class SimpleKeyboardEventDispatcher : KeyboardEventDispatcher

A basic implementation of KeyboardEventDispatcher.

Constructors

Link copied to clipboard
fun SimpleKeyboardEventDispatcher()

Functions

Link copied to clipboard
open override 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
open override val listener: KeyboardActionListener

The listener bound to this dispatcher.