Click or drag to resize

InputMapAddAction Method

Adds an empty action to the InputMap with a configurable deadzone.

An InputEvent can then be added to this action with ActionAddEvent(String, InputEvent).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void AddAction(
	string action,
	float deadzone = 0.5f
)

Parameters

action
Type: SystemString

[Missing <param name="action"/> documentation for "M:Godot.InputMap.AddAction(System.String,System.Single)"]

deadzone (Optional)
Type: SystemSingle

[Missing <param name="deadzone"/> documentation for "M:Godot.InputMap.AddAction(System.String,System.Single)"]

See Also