KeyDown

class KeyDown(val key: KeyCode, val isRepeat: Boolean, val scancode: Scancode) : PlatformEvent(source)

Reports that a key was pressed: key is its label under the current layout and scancode its physical position. isRepeat is true when the key is being held down and the event comes from key repeat rather than a new press.

Constructors

Link copied to clipboard
constructor(key: KeyCode, isRepeat: Boolean, scancode: Scancode)

Properties

Link copied to clipboard

Whether the event comes from key repeat rather than a new press.

Link copied to clipboard

The key's label under the current layout.

Link copied to clipboard

The key's physical position.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String