InputActionPress Method |
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 _Input(InputEvent) calls. It is intended to be used with IsActionPressed(String) and IsActionJustPressed(String). If you want to simulate _input, use ParseInputEvent(InputEvent) instead.
Namespace: Godot
public static void ActionPress( string action, float strength = 1f )
[Missing <param name="action"/> documentation for "M:Godot.Input.ActionPress(System.String,System.Single)"]
[Missing <param name="strength"/> documentation for "M:Godot.Input.ActionPress(System.String,System.Single)"]