Click or drag to resize

InputIsActionPressed Method

Returns true if you are pressing the action event. Note that if an action has multiple buttons assigned and more than one of them is pressed, releasing one button will release the action, even if some other button assigned to this action is still pressed.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static bool IsActionPressed(
	string action
)

Parameters

action
Type: SystemString

[Missing <param name="action"/> documentation for "M:Godot.Input.IsActionPressed(System.String)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Godot.Input.IsActionPressed(System.String)"]

See Also