mathertel / OneButton

An Arduino library for using a single button for multiple purpose input.
http://www.mathertel.de/Arduino/OneButtonLibrary.aspx
Other
920 stars 230 forks source link

Request to have option of triggering LongPress event as soon as the long press time has passed #100

Closed vyagi closed 7 months ago

vyagi commented 2 years ago

Currently, to achieve the long press you need to press the button and hold it pressed for sufficient time. The long press event is triggered after you release the button. Hence, you don't know if the time for recognizing the long press has passed or not. It would be nice if it was configurable to set it up for triggering the long press event as soon as the long press time passed has been detected.

mathertel commented 7 months ago

The longPressStart event does exactly this.