Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
InputEventJoypadMotion¶
继承: InputEvent < Resource < RefCounted < Object
代表游戏手柄的轴运动(例如摇杆和模拟扳机)。
描述¶
存储关于摇杆运动的信息。一个 InputEventJoypadMotion 一次代表一个轴。游戏手柄按钮见 InputEventJoypadButton。
教程¶
属性¶
|
||
|
属性说明¶
JoyAxis axis = 0
轴标识符。使用 JoyAxis 轴常量。
float axis_value = 0.0
操纵杆在给定轴上的当前位置。该值范围从 -1.0
到 1.0
。值为 0
意味着轴处于静止位置。