diff options
author | Andreas Haas <liu.gam3@gmail.com> | 2016-07-30 12:38:42 +0200 |
---|---|---|
committer | Andreas Haas <liu.gam3@gmail.com> | 2016-07-30 12:39:16 +0200 |
commit | 4755fe5576b05c94081bdcad5bd37523d5040150 (patch) | |
tree | 3097ec3394301918ccbcd83632df113add155af6 | |
parent | 38286670acc1292eea8effb332aa47136f1f0be8 (diff) |
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
-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 f182f2c96c..7970229c06 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: { |