InputEventJoypadButton

Inherits: InputEvent < Resource < Reference < Object

Input event for gamepad buttons.

Description

Input event type for gamepad buttons. For gamepad analog sticks and joysticks, see InputEventJoypadMotion.

Tutorials

Property Descriptions

  • int button_index
Default0
Setterset_button_index(value)
Getterget_button_index()

Button identifier. One of the JoystickList button constants.


Defaultfalse
Setterset_pressed(value)
Getteris_pressed()

If true, the button’s state is pressed. If false, the button’s state is released.


Default0.0
Setterset_pressure(value)
Getterget_pressure()

Represents the pressure the user puts on the button with his finger, if the controller supports it. Ranges from 0 to 1.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.