UE5.3.2 Touch Input Action Bug?

I set up a fairly simple touch input action that triggers on Touch1 Hold for mobile devices, and an equivalent one for a mouse click that triggers on LMB Hold. In C++ I mapped four different functions that fire on Triggered and Completed for touch and mouse clicks respectively, to be sure there were no competing inputs. For the mouse clicks, everything works as expected. If I click rapidly, the “Triggered” never fires because the hold time threshold is never met. The hold timer restarts with every click, and does not “accumulate” with each successive click.

On mobile devices, or with “Use Mouse for Touch” set to true, it’s a different story. The first time I touch, the “Ongoing” state shows the hold time accumulating. When I release my finger, I expect that to register as a “canceled” action, and placing my finger on the screen would restart the hold timer. Instead, “Ongoing” picks up from where the previous touch started, so if I rapidly touch the screen, the timer threshold accumulates between presses until the action triggers. My functions still fire on Triggered and Completed, but the Ongoing status never resets, and further touches are triggered immediately, and completely ignore the hold time.

With “cmd:showdebug enhanced input” active, before the Hold timer is exceeded and the “Triggered” event fires, Touch 1 looks like it’s null (as I would expect since I’m not touching anything):
image
After the Hold Threshold is exceeded, “(true)” shows after Touch 1, even after Completed fires, and the Hold Threshold is no longer respected; every touch, no matter how short, immediately fires the Triggered Event from that moment forward.
image
That “(true)” stays active until I click a UI button. Then “(true)” disappears, and the Hold Threshold is reset.
It’s possible I’m misunderstanding something, and there is some fundamental difference between the way touch input is interpreted vs a mouse click, but in my mind they both only have two states, pressed and released, so I would think their events would fire in the same way.

1 Like

Currently having the same issue, Hold key duration is not reset after initial trigger.

1 Like

Yeah that’s a shame. Are they any other Possibles to make an hold input on mobile?