InputEventJoypadButton
Inherits: InputEvent < Resource < RefCounted < Object
Represents a gamepad button being pressed or released.
Description
Input event type for gamepad buttons. For gamepad analog sticks and joysticks, see InputEventJoypadMotion.
Tutorials
Properties
| ||
| ||
|
Property Descriptions
JoyButton button_index = 0
Button identifier. One of the JoyButton button constants.
bool pressed = false
If true
, the button’s state is pressed. If false
, the button’s state is released.
float pressure = 0.0
Represents the pressure the user puts on the button with their finger, if the controller supports it. Ranges from 0
to 1
.
© Copyright 2014-present Juan Linietsky, Ariel Manzur and the Godot community (CC BY 3.0). Revision 53e837c6
.
Built with Sphinx using a theme provided by Read the Docs.