Click or drag to resize

InputIsJoyButtonPressed Method

Returns true if you are pressing the joypad button (see JoystickList).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static bool IsJoyButtonPressed(
	int device,
	int button
)

Parameters

device
Type: SystemInt32

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

button
Type: SystemInt32

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

Return Value

Type: Boolean

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

See Also