From e14c80ad07a537ebf99f6d3fcfa69901ab72bade Mon Sep 17 00:00:00 2001 From: Alexander Hartmann Date: Thu, 16 Apr 2026 19:06:19 +0200 Subject: [PATCH] Fix: support multi-input for `BaseButton` with Alt + Click --- scene/gui/base_button.cpp | 8 -------- scene/gui/base_button.h | 1 - 2 files changed, 9 deletions(-) diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp index 29e7abded7..637e9f589c 100644 --- a/scene/gui/base_button.cpp +++ b/scene/gui/base_button.cpp @@ -67,14 +67,6 @@ void BaseButton::gui_input(const Ref &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 touch = p_event; if (touch.is_valid()) { if (status.touch_index == -1) { diff --git a/scene/gui/base_button.h b/scene/gui/base_button.h index c12f39e4ba..f47d8fc9b8 100644 --- a/scene/gui/base_button.h +++ b/scene/gui/base_button.h @@ -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 button_group;