Merge pull request #118653 from Alex2782/fix_multi_input
Fix: support multi-input for `BaseButton` with Alt + Click
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user