@Override protected void layout() { hotArea.x = x; hotArea.y = y; hotArea.width = width; hotArea.height = height; }
@Override public void update() { super.update(); hotArea.active = visible; if (pressed) { if ((pressTime += Game.elapsed) >= longClick) { pressed = false; if (onLongClick()) { hotArea.reset(); processed = true; onTouchUp(); Game.vibrate(50); } } } }