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

Успадковує: InputEvent < Resource < RefCounted < Object

Відповідає натискання клавіші з геймпадом або випустили.

Опис

Вхідний тип заходу для гудзиків. Для геймпада аналогових паличок і джойстик, див. InputEventJoypadMotion.

Посібники

Властивості

JoyButton

button_index

0

bool

pressed

false

float

pressure

0.0


Описи властивостей

JoyButton button_index = 0 🔗

Ідентифікатор кнопки. Один з JoyButton кнопки константи.


bool pressed = false 🔗

  • void set_pressed(value: bool)

  • bool is_pressed()

Якщо true, натискається стан кнопки. Якщо false, випуск кнопки.


float pressure = 0.0 🔗

  • void set_pressure(value: float)

  • float get_pressure()

Застаріло: This property is never set by the engine and is always 0.