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.

InputEventJoypadMotion

Eredita: InputEvent < Resource < RefCounted < Object

Rappresenta i movimenti degli assi (come quelli del joystick o dei grilletti analogici) da un gamepad.

Descrizione

Memorizza informazioni sui movimenti del joystick. Un InputEventJoypadMotion rappresenta un asse alla volta. Per i pulsanti del gamepad, vedi InputEventJoypadButton.

Tutorial

Proprietà

JoyAxis

axis

0

float

axis_value

0.0


Descrizioni delle proprietà

JoyAxis axis = 0 🔗

Identificatore dell'asse.


float axis_value = 0.0 🔗

  • void set_axis_value(value: float)

  • float get_axis_value()

Posizione attuale del joystick sull'asse specificato. Il valore è compreso da -1.0 a 1.0. Un valore di 0 significa che l'asse è nella sua posizione di riposo.