We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a80e57c + 3ecf346 commit d8a82a8Copy full SHA for d8a82a8
core/input/input_event.cpp
@@ -1088,7 +1088,7 @@ void InputEventMouseMotion::_bind_methods() {
1088
///////////////////////////////////
1089
1090
void InputEventJoypadMotion::set_axis(JoyAxis p_axis) {
1091
- ERR_FAIL_COND(p_axis < JoyAxis::LEFT_X || p_axis > JoyAxis::MAX);
+ ERR_FAIL_COND(p_axis < JoyAxis::INVALID || p_axis > JoyAxis::MAX);
1092
1093
axis = p_axis;
1094
emit_changed();
0 commit comments