InputSystem.EnhancedTouch lose touch and see more finger

While using EnhancedTouch in a simple scenario, which is basically just

    private void Update()
    {
        if (Touch.activeFingers.Count != 0)
        {
            Touch activeTouch = Touch.activeFingers[0].currentTouch;
            Debug.Log($"{Time.frameCount} Touch: {activeTouch.touchId} AT {Touch.activeTouches.Count} AF {Touch.activeFingers.Count} - Phase: { activeTouch.phase} ");
        }
    }

Sometime I see up to 3 fingers active and touchID change frequently even if I use only 1 finger that never leave the screen.

Also I never see the Began phase or stationary

Anyone experience something similar?

Which version of the input system package?

Windows 10
Unity 2021.1.16f1
Input 1.1.0-Pre.6

I’m seeing similar things on 2021.2.16f1. This was not happening on 2020.3, any ideas what may have changed?

InputSystem package 1.3.0

@Morphus74 I just figured out the problem. The Input System Package settings in the Project Settings has an option of when the input events get updated. Mine was set to process in Fixed Update and since I was checking input in Update() that did not pick up all the events accurately. Changing the setting to process in Dynamic Update made it work for me.

1 Like

Mine is in dynamic update, but at the moment I still have the issue that on Windows Platform Touch just don’t work with UI, a but is logged, but no solution yet :frowning: