click-hold

nkrkv/my-utils/click-hold

Distinguishes between short and long button presses. Use to handle two functions with a single control.
click-hold
@/click-hold
Distinguishes between short and long button presses. Use to handle two functions with a single control.
Tnumber
Sets the timeout in seconds to consider a press to be button hold (i.e., the long press).
INboolean
A signal from the button or another switch, should be true when it is pressed and false when idle.
click-hold
IN
CLK
HOLD
T
HOLDpulse
Fires when `T` is elapsed while the button is being down.
CLKpulse
Fires right at the moment of the button release if `T` was not elapsed.
To use the node in your project you should have the nkrkv/my-utils library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.