From 699608804f8895bbb1c2b85ccc326368842614c6 Mon Sep 17 00:00:00 2001 From: Markus Sauermann <6299227+Sauermann@users.noreply.github.com> Date: Fri, 17 Feb 2023 01:19:57 +0100 Subject: [PATCH] Remove device-id restriction from `TouchScreenButton` input events Remove the restriction that only devices with id 0 are used for `TouchScreenButton`-Input events. This allows emulated events to be used for TouchScreenButton. --- scene/2d/touch_screen_button.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scene/2d/touch_screen_button.cpp b/scene/2d/touch_screen_button.cpp index 54ed96f5852..1c2903fe220 100644 --- a/scene/2d/touch_screen_button.cpp +++ b/scene/2d/touch_screen_button.cpp @@ -194,10 +194,6 @@ void TouchScreenButton::input(const Ref &p_event) { return; } - if (p_event->get_device() != 0) { - return; - } - const InputEventScreenTouch *st = Object::cast_to(*p_event); if (passby_press) {