/** Adds a standard touch delegate to the dispatcher's list. * See StandardTouchDelegate description. * IMPORTANT: The delegate will be retained. */ public void addStandardDelegate(CCTouchAllAtOnceDelegate aDelegate, int priority) { CCTouchHandler handler = new CCStandardTouchHandler(aDelegate, priority); if (!locked) { forceAddHandler(handler, standardHandlers); } else { if (!removeDelegate(aDelegate, handlersToRemove)) { handlersToAdd.Add(handler); toAdd = true; } } }
/** Adds a standard touch delegate to the dispatcher's list. See StandardTouchDelegate description. IMPORTANT: The delegate will be retained. */ public void addStandardDelegate(CCTouchAllAtOnceDelegate aDelegate, int priority) { CCTouchHandler handler = new CCStandardTouchHandler(aDelegate, priority); if( ! locked ) { forceAddHandler(handler, standardHandlers); } else { if(!removeDelegate(aDelegate, handlersToRemove)){ handlersToAdd.Add(handler); toAdd = true; } } }