Pressing 2 touch buttons at the same time

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

I say right away that I do not exclude possible errors, since I use a translator.
I’m new to Godot and I’ve run into a problem while developing a mobile game. If, while holding one button, you press another, then the touch will be counted only on 1, and 2 will be ignored. I had the same problem with the touch joystick, which behaved strangely with 1+ touches. In the case of keyboard input, not touch, everything works well. Is there a possibility to fix this problem?

Assuming you’re using InputEventScreenTouch, its index property is the number of presses: InputEventScreenTouch — Godot Engine (stable) documentation in English

Beyond this, most projects will ‘roll their own’ around the input event; how you’ve done this is something you need to revisit. Without some code or a sample project, it’s tough to help.

spaceyjase | 2023-03-31 13:16