Explorar o código

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
Andreas Haas %!s(int64=9) %!d(string=hai) anos
pai
achega
4755fe5576
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      scene/main/viewport.cpp

+ 1 - 0
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: {