Post 18 made on Monday September 13, 2010 at 14:45 |
BluPhenix Long Time Member |
Joined: Posts: | December 2008 371 |
|
|
Well you actually don't use a counter you could do it with just:
var held = false; onHold = function() { held=true; } onHoldInterval = 1000; onRelease = function() { if (held) {doOneThing(); } else doAnother(); held=false; }
|
|
|