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.
Checking the stable version of the documentation...
InputEventJoypadMotion
继承: InputEvent < Resource < RefCounted < Object
代表游戏手柄的轴运动(例如摇杆和模拟扳机)。
描述
存储关于摇杆运动的信息。一个 InputEventJoypadMotion 一次代表一个轴。游戏手柄按钮见 InputEventJoypadButton。
教程
属性
|
||
|
属性说明
轴标识符。使用 JoyAxis 轴常量。
操纵杆在给定轴上的当前位置。该值范围从 -1.0
到 1.0
。值为 0
意味着轴处于静止位置。