Merge pull request #66750 from EricEzaM/62899-allow-shortcut-joypab-btn

Allow shortcut input to be JoypadButton.
This commit is contained in:
Rémi Verschelde 2022-10-03 09:30:26 +02:00
commit d331b803b8
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}