Input.getState

Gets the state of a string-bound input.

class Input
static final
T
getState
(
T = bool
)
(
string input
,
bool checkPrevious = false
)
if (
is(T == bool)
)

Parameters

input string

The input to check for.

checkPrevious bool

Whether or not to make sure the key was up last frame.

Meta