Skip to content

Commit

Permalink
Merge pull request #97068 from Mickeon/allow_joy_axis_invalid
Browse files Browse the repository at this point in the history
Allow `JOY_AXIS_INVALID` in InputEventJoypadMotion's `axis`
  • Loading branch information
akien-mga committed Sep 18, 2024
2 parents a80e57c + 3ecf346 commit d8a82a8
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 d8a82a8

Please sign in to comment.