diff options
author | Micky <micheledevita2@gmail.com> | 2024-09-16 12:12:27 +0200 |
---|---|---|
committer | Micky <micheledevita2@gmail.com> | 2024-09-16 12:12:27 +0200 |
commit | 3ecf346f12587dcc9854c928bcd1b3f6039bfbbe (patch) | |
tree | 16f21b476455884f377cc143cef7158feb461d30 | |
parent | 6681f2563b99e14929a8acb27f4908fece398ef1 (diff) | |
download | redot-engine-3ecf346f12587dcc9854c928bcd1b3f6039bfbbe.tar.gz |
Allow JOY_AXIS_INVALID in InputEventJoypadMotion's `axis`
-rw-r--r-- | core/input/input_event.cpp | 2 |
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(); |