Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

InputEventJoypadButton

Eredita: InputEvent < Resource < RefCounted < Object

Rappresenta la pressione o il rilascio di un pulsante del gamepad.

Descrizione

Tipo di evento di input per i pulsanti del gamepad. Per gli stick analogici e i joystick del gamepad, vedi InputEventJoypadMotion.

Tutorial

Proprietà

JoyButton

button_index

0

bool

pressed

false

float

pressure

0.0


Descrizioni delle proprietà

JoyButton button_index = 0 🔗

Identificatore del pulsante. Una delle costanti di pulsante JoyButton.


bool pressed = false 🔗

  • void set_pressed(value: bool)

  • bool is_pressed()

Se true, lo stato del pulsante è premuto. Se false, lo stato del pulsante è rilasciato.


float pressure = 0.0 🔗

  • void set_pressure(value: float)

  • float get_pressure()

Deprecato: This property is never set by the engine and is always 0.