Click or drag to resize

InputGetJoyAxis Method

Returns the current value of the joypad axis at given index (see JoystickList).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static float GetJoyAxis(
	int device,
	int axis
)

Parameters

device
Type: SystemInt32

[Missing <param name="device"/> documentation for "M:Godot.Input.GetJoyAxis(System.Int32,System.Int32)"]

axis
Type: SystemInt32

[Missing <param name="axis"/> documentation for "M:Godot.Input.GetJoyAxis(System.Int32,System.Int32)"]

Return Value

Type: Single

[Missing <returns> documentation for "M:Godot.Input.GetJoyAxis(System.Int32,System.Int32)"]

See Also