openrndr / org.openrndr / KeyEvent

KeyEvent

class KeyEvent (source)

Key event describes key events.

Constructors

<init>

Key event describes key events.

KeyEvent(type: KeyEventType, key: Int, name: String, modifiers: Set<KeyModifier>, propagationCancelled: Boolean = false)

Properties

key

physical key identifier, don't use this for layout-sensitive queries

val key: Int

modifiers

a set of key modifiers that are active/pressed

val modifiers: Set<KeyModifier>

name

the layout-sensitive name of the key

val name: String

propagationCancelled

a flag that can be set to indicate that this event is handled and should not be processed further

var propagationCancelled: Boolean

type

the type of event

val type: KeyEventType

Functions

cancelPropagation

fun cancelPropagation(): Unit