Methods
-
bind(key, action)
-
Bind a key to a specific action.
Parameters:
Name Type Description keyString Key to bind
actionString Action name
- Source:
Returns:
Self for chaining
- Type
- SystemInput
-
pressed(action)
-
Whether an action is just pressed.
Parameters:
Name Type Description actionString Action name
- Source:
Returns:
Pressed or not
- Type
- Boolean
-
released(action)
-
Whether an action is just released.
Parameters:
Name Type Description actionString Action name
- Source:
Returns:
Released or not
- Type
- Boolean
-
state(action)
-
Whether an action is currently pressed.
Parameters:
Name Type Description actionString Action name
- Source:
Returns:
Pressed or not
- Type
- Boolean
-
unbind(key, action)
-
Unbind an action from a key.
Parameters:
Name Type Description keyString Key to unbind
actionString Action to unbind
- Source:
Returns:
Self for chaining
- Type
- SystemInput
-
unbindAll()
-
Unbind all the actions.
- Source: