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
This commit is contained in:
Andreas Haas 2016-07-30 12:38:42 +02:00
parent 38286670ac
commit 4755fe5576
No known key found for this signature in database
GPG key ID: B5FFAE1B65FBD2E1

View file

@ -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: {