Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multitouch releasing not working on iOS with Control Signal gui_input #59681

Open
martinpelli opened this issue Mar 29, 2022 · 2 comments
Open

Comments

@martinpelli
Copy link

martinpelli commented Mar 29, 2022

Godot version

3.4.4 stable

System information

MacOS 12.3

Issue description

Hi, I didn't know if open an issue as I don't know if this is a bug or is it on purpose because of how the Control node treats signals Trying to make a pinch to zoom camera, following a tutorial from kidscancode. My code wasn't working, I started to figure out and found that I can't detect when multiple touches are released, but I realized that this happen only when using gui_input signal from a Control node, when using _input method this is not happening.

  if event is InputEventScreenTouch:
             if event.pressed:
                 print("touch pressed: " + str(event.index))
             else:
                print("touch released: " + str(event.index))

So this on an Iphone 8 plus is printing:

touch pressed: 0
touch pressed : 1

touch released: 0

The event with index 1 is never releasing no matter what I try with my fingers, these can be a bug on iOS??

Steps to reproduce

Add a Control node to your scene, then add a script to the Control node. Then open the signals from the editor of Control Node. Connect the signal gui_input to your Control Script, then just copy and paste the code from above in the method created by the signal. Export the project to your phone, press the screen with one finger, then with another and finally release one and then the other finger.

Minimal reproduction project

iOSControlBug.zip

@martinpelli martinpelli changed the title Multitouch releasing not working on iOS Multitouch releasing not working on iOS with Control Signal gui_input Mar 29, 2022
@Calinou
Copy link
Member

Calinou commented Mar 29, 2022

Related to #58550, which was fixed in 3.4.4.

@martinpelli Please upload a minimal reproduction project to make this easier to troubleshoot.

@martinpelli
Copy link
Author

Related to #58550, which was fixed in 3.4.4.

@martinpelli Please upload a minimal reproduction project to make this easier to troubleshoot.

Sorry, added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants