skrypton-api / com.waicool20.skrypton.jni.objects / SKryptonKeyEvent

SKryptonKeyEvent

class SKryptonKeyEvent : SKryptonEvent

An event which indicates that a key action occurred.

Constructors

<init>

SKryptonKeyEvent(type: KeyEventType, key: Key, modifiers: KeyboardModifiers = KeyboardModifiers.NoModifier, autoRepeat: Boolean = false, count: Int = 1)

This constructor takes a Key and other parameters and constructs a SKryptonKeyEvent.

SKryptonKeyEvent(type: KeyEventType, char: Char, modifiers: KeyboardModifiers = KeyboardModifiers.NoModifier, autoRepeat: Boolean = false, count: Int = 1)

This constructor takes a Char and other parameters and constructs a SKryptonKeyEvent.

SKryptonKeyEvent(type: KeyEventType, char: String, modifiers: KeyboardModifiers = KeyboardModifiers.NoModifier, autoRepeat: Boolean = false, count: Int = 1)

Same as Char constructor except that it accepts a single character String.

Properties

character

val character: String

Character string that was generated when this event occurred.

isAutoRepeat

val isAutoRepeat: Boolean

Whether or not the event was auto repeating (Long press of the key).

key

val key: Key

The key that was involved in this event.

Inherited Properties

handle

open val handle: CPointer

Native pointer backing this object.

Inherited Functions

close

open fun close(): Unit

Disposes this event.