Skip to content

Commit

Permalink
Allow JOY_AXIS_INVALID in InputEventJoypadMotion's axis
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickeon committed Sep 16, 2024
1 parent 6681f25 commit 3ecf346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/input/input_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3ecf346

Please sign in to comment.