How do i detect a "proper" click?

Hi,

in the Update method, how do i detect a “proper” click with the new Input system ?

a “proper” click has those things:
MouseDown on position,
Mouse does not move,
Any amount of time from 0-infinity passes,
MouseUp
→ Click happend

All i can find is.

basicDefaultInput.UI.Click.WasPressedThisFrame()
basicDefaultInput.UI.Click.WasPerformedThisFrame()
basicDefaultInput.UI.Click.WasReleasedThisFrame()

It’s not the kind of thing you should implement via Update honestly. You should hook into the input action callbacks, or use the event system interfaces if you want to check if a particular object has been clicked: Namespace UnityEngine.EventSystems | Unity UI | 1.0.0