예제 #1
0
  /**
   * Make this <code>FlxGesture</code> object active in the manager.
   *
   * @param Callback The callback that will be fired when a gesture is performed.
   * @return The <code>FlxGesture</code> object that got activated.
   */
  public FlxGesture start(IFlxGesture Callback) {
    GestureManager manager = getManager();
    if (manager != null) manager.add(this);
    else {
      FlxG.log("WARNING: Did you forgot to plug-in GestureManager?");
      return null;
    }

    _callback = Callback;
    return this;
  }
예제 #2
0
 /** Removes <code>FlxGesture</code> object from the manager. */
 public void stop() {
   GestureManager manager = getManager();
   if (manager != null) manager.remove(this);
 }