Click or drag to resize

InputGetActionStrength Method

Returns a value between 0 and 1 representing the intensity of the given action. In a joypad, for example, the further away the axis (analog sticks or L2, R2 triggers) is from the dead zone, the closer the value will be to 1. If the action is mapped to a control that has no axis as the keyboard, the value returned will be 0 or 1.

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

Parameters

action
Type: SystemString

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

Return Value

Type: Single

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

See Also