Input.getState

Gets the state of a string-bound input.

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

Parameters

input
Type: string

The input to check for.

checkPrevious
Type: bool

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

Meta