KeyboardHost

external class KeyboardHost(source)

Constructors

Link copied to clipboard
constructor(system: System)

Properties

Link copied to clipboard
external var carryChar: String
Link copied to clipboard
Link copied to clipboard
external val system: System

Functions

Link copied to clipboard
Link copied to clipboard
external fun isKeyPressed(keyDef: keyboardKey): Boolean
Link copied to clipboard
suspend external fun keydown(instance: Instance, keyDef: keyboardKey): Void
Link copied to clipboard
external fun keydownAsync(instance: Instance, keyDef: keyboardKey): Promise<Void>

Press a key

Link copied to clipboard
suspend external fun keyup(instance: Instance, keyDef: keyboardKey): Void
Link copied to clipboard
external fun keyupAsync(instance: Instance, keyDef: keyboardKey): Promise<Void>

Release a key