Click or drag to resize

InputIsActionJustPressed Method

Returns true when the user starts pressing the action event, meaning it's true only on the frame that the user pressed down the button.

This is useful for code that needs to run only once when an action is pressed, instead of every frame while it's pressed.

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

Parameters

action
Type: SystemString

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

Return Value

Type: Boolean

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

See Also