summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-18 17:41:08 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-18 17:41:08 +0200
commitd8a82a8945f79ace417f89da37b13efd3c23d90e (patch)
tree3e6725d34e3997593608286a8b6fef758e4c783c
parenta80e57c663a9232ec011fabdcaef69da3d989d7f (diff)
parent3ecf346f12587dcc9854c928bcd1b3f6039bfbbe (diff)
downloadredot-engine-d8a82a8945f79ace417f89da37b13efd3c23d90e.tar.gz
Merge pull request #97068 from Mickeon/allow_joy_axis_invalid
Allow `JOY_AXIS_INVALID` in InputEventJoypadMotion's `axis`
-rw-r--r--core/input/input_event.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/input/input_event.cpp b/core/input/input_event.cpp
index de3efa7a3a..905526bbbd 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();