Example #1
1
  public boolean mouseDown(Event e, int x, int y) {
    if (suspended) {
      animate.resume();
      suspended = false;
    } else {
      animate.suspend();
      suspended = true;
    }

    return true;
  }