toyGraphics / com.anysolo.toyGraphics / Key

Key

class Key

Contains information about one pressed key

Constructors

<init>

Key(code: Int, modifiers: KeyModifiers = KeyModifiers())

Contains information about one pressed key

Properties

code

val code: Int

Integer code of the key.

isAlt

val isAlt: Boolean

isCtrl

val isCtrl: Boolean

isMeta

val isMeta: Boolean

isShift

val isShift: Boolean

modifiers

val modifiers: KeyModifiers

Modifiers pressed at the same moment the key was pressed

Functions

toString

fun toString(): String