summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2023-02-17 01:19:57 +0100
committerMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2023-02-17 01:19:57 +0100
commit699608804f8895bbb1c2b85ccc326368842614c6 (patch)
tree041d53bdb49e59164857d299d281950927786075 /scene
parentc7aadab155a6e3d3d5445465f3d6eda18a31d2e4 (diff)
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.
Diffstat (limited to 'scene')
-rw-r--r--scene/2d/touch_screen_button.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/scene/2d/touch_screen_button.cpp b/scene/2d/touch_screen_button.cpp
index 54ed96f585..1c2903fe22 100644
--- a/scene/2d/touch_screen_button.cpp
+++ b/scene/2d/touch_screen_button.cpp
@@ -194,10 +194,6 @@ void TouchScreenButton::input(const Ref<InputEvent> &p_event) {
return;
}
- if (p_event->get_device() != 0) {
- return;
- }
-
const InputEventScreenTouch *st = Object::cast_to<InputEventScreenTouch>(*p_event);
if (passby_press) {