You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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))
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.
The text was updated successfully, but these errors were encountered:
martinpelli
changed the title
Multitouch releasing not working on iOS
Multitouch releasing not working on iOS with Control Signal gui_input
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.
So this on an Iphone 8 plus is printing:
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
The text was updated successfully, but these errors were encountered: