2 FInger Drag Problem

Godot 4.2Stable
When I Put my first finger and drag it i get touch input event and drag input event.
When I Put my first finger and drag it i get touch input event and drag input event and then if I put my second finger and move it, I get all of the events of the second finger too.
When I Put my first finger and then put my second finger, and then dragging my fingers, Godot don’t give me any of the drag events!
Here is my code:

public override void _Input(InputEvent e)
{
	if (e is InputEventScreenTouch touch)
	{
		GD.Print("_Input Touch  ", touch.Index, "  ", touch.Position);
    }

	if (e is InputEventScreenDrag drag)
	{
		GD.Print("_Input Drag  ", drag.Index, "  ", drag.Position);
	}
}

so I cant implement my zoom function correctly. can anyone help me? is it Godot problem?

Try using a InputEventMagnifyGesture

1 Like

Thanks it worked.
but why my code not working!

I’m not sure, sorry. I’ve not tested it myself.