Function InputSingleton.actionPress
This will simulate pressing the specified action.
The strength can be used for non-boolean actions, it's ranged between 0 and 1 representing the intensity of the given action.
Note: This method will not cause any Node
calls. It is intended to be used with isActionPressed
and isActionJustPressed
. If you want to simulate _input
, use parseInputEvent
instead.