encoder
encoder copied to clipboard
setDoubleClickEnabled(false) also disables Click
I was not using double clicks in my code so I disabled it in my setup(), but then when I went to add the ClickEncoder::Clicked case it wasn't being captured. As soon as I commented out this line:
encoder->setDoubleClickEnabled(false);
The single click worked. Is that intentional? I would still like to disable DoubleClick but capture Clicked.
I'm using the latest version of the library as downloaded from here.
To fix this, I changed this line:
if (--doubleClickTicks == 0) {
to:
if (doubleClickTicks == 0) {