Merge pull request #118653 from Alex2782/fix_multi_input

Fix: support multi-input for `BaseButton` with Alt + Click
This commit is contained in:
Thaddeus Crews
2026-05-14 09:06:47 -05:00
2 changed files with 0 additions and 9 deletions
-8
View File
@@ -67,14 +67,6 @@ void BaseButton::gui_input(const Ref<InputEvent> &p_event) {
return;
}
if (p_event->is_pressed() && status.touch_index == -1) {
status.device_id = p_event->get_device();
}
if (p_event->get_device() != status.device_id) {
return;
}
Ref<InputEventScreenTouch> touch = p_event;
if (touch.is_valid()) {
if (status.touch_index == -1) {
-1
View File
@@ -64,7 +64,6 @@ private:
bool pressed_down_with_focus = false;
bool disabled = false;
int touch_index = -1;
int device_id = InputEvent::DEVICE_ID_EMULATION;
} status;
Ref<ButtonGroup> button_group;