HoldAction

public class HoldAction

Represents a key hold configuration

Types

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

Functions

key
Link copied to clipboard
Keyboard.HoldAction key(char key)
Specifies the key to use for this hold action
Keyboard.HoldAction key(Keyboard.HoldAction.Key key)
Specifies the key to use for this hold action
Keyboard.HoldAction key(char key, int keyCode)
Specifies the key and keyCode to use for this hold action
presses
Link copied to clipboard
Keyboard.HoldAction presses(int presses)
Specifies this hold action should press the key the specified amount of times.
start
Link copied to clipboard
Keyboard.HoldAction.KeyHoldContext start()
Starts this hold action.
timeout
Link copied to clipboard
Keyboard.HoldAction timeout(long timeout)
Specifies this hold action should execute for a maximum amount of time.
until
Link copied to clipboard
Keyboard.HoldAction until(BooleanSupplier stopCondition)
Specifies a stop condition for this hold action.