Distinguish between long touch and short touch on Halocode touchpad


#1

As you know, Halocode has 4 buttons for operation, but in case more interaction is needed, I plan to distinguish short touch and long touch for each button, does anyone know how to identify long touch?

Thanks,


#2

@ugnobita
There isn’t an event for it, but you can do a workaround like this:

In the above example, the lights will be red on a short press of touch sensor 0, and green on a long press.

Note: You have to press and release the sensor, simply pressing it down and not releasing will not work.


#3

That’s a great idea.
Thank you.


#4

Glad it was helpful. :slight_smile: