KeyHoldContext

public class KeyHoldContext

Represents the context of a current key hold action.

See also

this#start()

this#start()

Functions

isActive
Link copied to clipboard
boolean isActive()
Checks if the current key hold action is running
isStarted
Link copied to clipboard
boolean isStarted()
Checks if the key hold action thread has started holding the key
isStopped
Link copied to clipboard
boolean isStopped()
Checks if the current key hold action was stopped through stop
stop
Link copied to clipboard
void stop()
Stops the current key hold action
waitFor
Link copied to clipboard
void waitFor()
Waits for the key hold action to complete.
boolean waitFor(long timeoutMs)
Waits for the key hold action to complete up until the specified timeout.
waitForStart
Link copied to clipboard
void waitForStart()
Waits for the key hold action to start holding the key
boolean waitForStart(long timeoutMs)
Waits for the key hold action to start holding the key, up to the specified timeout time