Call this function every time the desired click event is active.
Clear the counter, resetting click count to 0.
Call this function every time the desired click event is emitted.
Call this function every time the desired click event is emitted.
Call this function every time the desired click event is emitted.
Number of registered clicks.
Helper struct to detect double clicks, triple clicks, or overall repeated clicks.
To make use of the sensor, you need to call its two methods — hold and activate — whenever the relevant event occurs. hold should be called for every instance, whereas activate should only be called if the event is active. For example, to implement double clicks via mouse using input actions, you'd need to implement two input handlers: