Skip to content

Commit

Permalink
Merge pull request #66750 from EricEzaM/62899-allow-shortcut-joypab-btn
Browse files Browse the repository at this point in the history
Allow shortcut input to be JoypadButton.
  • Loading branch information
akien-mga committed Oct 3, 2022
2 parents 4e237ed + 2a7e614 commit d331b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/main/viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2799,7 +2799,7 @@ void Viewport::push_unhandled_input(const Ref<InputEvent> &p_event, bool p_local
}

// Shortcut Input.
if (Object::cast_to<InputEventKey>(*ev) != nullptr || Object::cast_to<InputEventShortcut>(*ev) != nullptr) {
if (Object::cast_to<InputEventKey>(*ev) != nullptr || Object::cast_to<InputEventShortcut>(*ev) != nullptr || Object::cast_to<InputEventJoypadButton>(*ev) != nullptr) {
get_tree()->_call_input_pause(shortcut_input_group, SceneTree::CALL_INPUT_TYPE_SHORTCUT_INPUT, ev, this);
}

Expand Down

0 comments on commit d331b80

Please sign in to comment.