Skip to content

Commit 3ecf346

Browse files
committed
Allow JOY_AXIS_INVALID in InputEventJoypadMotion's axis
1 parent 6681f25 commit 3ecf346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/input/input_event.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ void InputEventMouseMotion::_bind_methods() {
10881088
///////////////////////////////////
10891089

10901090
void InputEventJoypadMotion::set_axis(JoyAxis p_axis) {
1091-
ERR_FAIL_COND(p_axis < JoyAxis::LEFT_X || p_axis > JoyAxis::MAX);
1091+
ERR_FAIL_COND(p_axis < JoyAxis::INVALID || p_axis > JoyAxis::MAX);
10921092

10931093
axis = p_axis;
10941094
emit_changed();

0 commit comments

Comments
 (0)