function buttonReleased(btn) {
  var dur = getTime() - firstPress;
  if (pressTimer) {
    debug_log("CLEAR pressTimer 3");
    clearInterval(pressTimer);
    pressTimer = undefined;
  }
  
  if ( dur >= 1.5 ) {
    switch(btn) {
    case 1:
      face.onButtonLong(btn);
      break;
    case 2:
      face.onButtonLong(btn);
      //Bangle.showLauncher();
      break;
    case 3:
      // do nothing
      break;
    }
    return;
  }

  if (btn !== 3) face.onButtonShort(btn);
}
// if you release too soon there is no buzz as timer is cleared
if you release too soon there is no buzz as timer is cleared
if you release too soon there is no buzz as timer is cleared
function buttonReleased(btn) {
  var dur = getTime() - firstPress;
  if (pressTimer) {
    debug_log("CLEAR pressTimer 3");
    clearInterval(pressTimer);
    pressTimer = undefined;
  }
  if ( dur >= 1.5 ) {
    switch(btn) {
    case 1:
      face.onButtonLong(btn);
      break;
    case 2:
      face.onButtonLong(btn);
      break;
    case 3:
      break;
    }
    return;
  }
  if (btn !== 3) face.onButtonShort(btn);
}
function buttonReleased ( btn ) { var dur = getTime ( ) - firstPress ; if ( pressTimer ) { debug_log ( "CLEAR pressTimer 3" ) ; clearInterval ( pressTimer ) ; pressTimer = undefined ; } if ( dur >= 1.5 ) { switch ( btn ) { case 1 : face . onButtonLong ( btn ) ; break ; case 2 : face . onButtonLong ( btn ) ; break ; case 3 : break ; } return ; } if ( btn !== 3 ) face . onButtonShort ( btn ) ; }
if you release too soon there is no buzz as timer is cleared
if you release too soon there is no buzz as timer is cleared
//Bangle.showLauncher(); // do nothing