/** * 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; }
/** Removes <code>FlxGesture</code> object from the manager. */ public void stop() { GestureManager manager = getManager(); if (manager != null) manager.remove(this); }