diff options
| author | Andreas Haas | 2016-07-30 12:38:42 +0200 |
|---|---|---|
| committer | Andreas Haas | 2016-07-30 12:39:16 +0200 |
| commit | 4755fe5576b05c94081bdcad5bd37523d5040150 (patch) | |
| tree | 3097ec3394301918ccbcd83632df113add155af6 /scene/main/viewport.cpp | |
| parent | 38286670acc1292eea8effb332aa47136f1f0be8 (diff) | |
| download | godot-4755fe5576b05c94081bdcad5bd37523d5040150.tar.gz godot-4755fe5576b05c94081bdcad5bd37523d5040150.tar.zst godot-4755fe5576b05c94081bdcad5bd37523d5040150.zip | |
UI navigation via JOYSTICK_MOTION.
Previously, you could assign joystick axis events to "ui_*" actions but they had no effect.
See https://godotengine.org/qa/6232
Diffstat (limited to '')
| -rw-r--r-- | scene/main/viewport.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index f182f2c96..7970229c0 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2095,6 +2095,7 @@ void Viewport::_gui_input_event(InputEvent p_event) { } break; case InputEvent::ACTION: case InputEvent::JOYSTICK_BUTTON: + case InputEvent::JOYSTICK_MOTION: case InputEvent::KEY: { |
