HoldAction

open class HoldAction

Represents a key hold configuration

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
enum Key
Represents a key that can be held.
Link copied to clipboard
open class KeyHoldContext
Represents the context of a current key hold action.

Functions

Link copied to clipboard
open fun key(key: Char): Keyboard.HoldAction
Specifies the key to use for this hold action
open fun key(key: Char, keyCode: Int): Keyboard.HoldAction
Specifies the key and keyCode to use for this hold action
Link copied to clipboard
open fun presses(presses: Int): Keyboard.HoldAction
Specifies this hold action should press the key the specified amount of times.
Link copied to clipboard
Starts this hold action.
Link copied to clipboard
open fun timeout(timeout: Long): Keyboard.HoldAction
Specifies this hold action should execute for a maximum amount of time.
Link copied to clipboard
open fun until(stopCondition: BooleanSupplier): Keyboard.HoldAction
Specifies a stop condition for this hold action.