Release touchscreen button when finger is not on button frame

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By punyi23

Hi everybody, I’m on a little trouble with touchscreen buttons, here is what I’m trying to achieve:

By default when you’re pressing a touchscreen button and then you move your finger around the screen the button keep pressed and I don’t want it, I want that if your finger is out of the touchscreen button frame activated the release event.

Also, I was trying that when you move your finger around the screen and you pass above another touchscreen activated the pressed event.

I’m sure I can achieve this calculating positions with drags and so on, but I was wondering if there was a cleanest method to do this.

I’m currently working on Godot 3.0.6

Thank you for advance

:bust_in_silhouette: Reply From: Dlean Jeans

Turn on Passby Press from the Inspector

Lol, so easy. Sorry for the inconvenience. Thank you.

punyi23 | 2019-02-11 18:45