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.
axis
1 parent 6681f25 commit 3ecf346Copy full SHA for 3ecf346
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