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.
This commit is contained in:
parent
c7aadab155
commit
699608804f
1 changed files with 0 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue