Keyboard

open class Keyboard

Utilities related to using the keyboard/typing in-game

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
open class HoldAction
Represents a key hold configuration

Functions

Link copied to clipboard
Creates a new HoldAction
Link copied to clipboard
open fun holdKey(keyChar: Char, keyCode: Int, stopCondition: BooleanSupplier)
Holds a key while the stopping condition returns false.
Link copied to clipboard
open fun pressBack()
Presses the backspace key
Link copied to clipboard
open fun pressEnter()
Presses the enter key
Link copied to clipboard
open fun pressEscape()
Presses the escape key
Link copied to clipboard
open fun typeLine(chars: String)
Types the specified string and presses enter after
open fun typeLine(desired: String, current: String)
Types the specified string, pressing backspace if needed in order to go from the 'current' string to the 'desired' string.
Link copied to clipboard
open fun typeString(chars: String)
Types the specified string
open fun typeString(desired: String, current: String)
Types the specified string, pressing backspace if needed in order to go from the 'current' string to the 'desired' string.