I am trying to create a SmartApp that is essentially a combination of ‘The Big Switch’ and ‘Double Tap’. The behavior I am looking for is:
On single press do X
On double press do Y; but NOT X
Obviously the first press always falls through initially, so a double press does X and Y. I have tried putting a ‘pause’ in the event handler to wait for the second press (if present), but that seems to block any additional events.
How can I look for a double press first? and if not present, then execute X.