getAction()
world.input.getAction(action)
Description
Get an action.
Parameters
Property | Type | Description |
---|---|---|
action | string | Name of the action. |
Returns
Returns > 0 if the action was triggered. Value is usually from 0 to 1. The exception is mouse velocity and scroll which is uncapped.
Example
world.input.getAction('jump')