Button icon indicating copy to clipboard operation
Button copied to clipboard

debounce only works in pressHandler not for isPressed() method

Open rwijngaa opened this issue 10 years ago • 1 comments

Hi,

i noticed the debounce functionality only works in pressHandlers, but not when you call isPressed() method in the loop().

I instantiated the button like this Button myButton = Button(19, BUTTON_PULLDOWN, true, 50);

Thanks!

rwijngaa avatar Mar 24 '15 20:03 rwijngaa

Debouncing occurs in the process() method, which is called by isPressed() if you pass it true, are you doing isPressed(true)?

t3db0t avatar Mar 31 '15 15:03 t3db0t