Click or drag to resize

InputEventIsActionPressed Method

Returns true if the given action is being pressed (and is not an echo event for InputEventKey events, unless allow_echo is true). Not relevant for events of type InputEventMouseMotion or InputEventScreenDrag.

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

Parameters

action
Type: SystemString

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

allowEcho (Optional)
Type: SystemBoolean

[Missing <param name="allowEcho"/> documentation for "M:Godot.InputEvent.IsActionPressed(System.String,System.Boolean)"]

Return Value

Type: Boolean

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

See Also