Keyboard

public class Keyboard

Utilities related to using the keyboard/typing in-game

Types

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

Functions

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