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,
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,
@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.