From 3ecf346f12587dcc9854c928bcd1b3f6039bfbbe Mon Sep 17 00:00:00 2001 From: Micky Date: Mon, 16 Sep 2024 12:12:27 +0200 Subject: [PATCH] Allow JOY_AXIS_INVALID in InputEventJoypadMotion's `axis` --- core/input/input_event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/input/input_event.cpp b/core/input/input_event.cpp index de3efa7a3a4..905526bbbd8 100644 --- a/core/input/input_event.cpp +++ b/core/input/input_event.cpp @@ -1088,7 +1088,7 @@ void InputEventMouseMotion::_bind_methods() { /////////////////////////////////// void InputEventJoypadMotion::set_axis(JoyAxis p_axis) { - ERR_FAIL_COND(p_axis < JoyAxis::LEFT_X || p_axis > JoyAxis::MAX); + ERR_FAIL_COND(p_axis < JoyAxis::INVALID || p_axis > JoyAxis::MAX); axis = p_axis; emit_changed();