void removeDelegate(TouchTargetedDelegate intarget) { int index = targetedHandlers.IndexOf(intarget); targetedHandlersAccelerateInfo.RemoveAt(index); targetedHandlers.Remove(intarget); }
public void addTargetedDelegate(TouchTargetedDelegate intarget, int inTouchPriority, bool inswallowsTouches) { int i = 0; //searching for place to insert delegate for (i = 0; i < targetedHandlers.Count; i++) { if ((targetedHandlersTouchInfo[i] as TouchInfo).touchPriority > inTouchPriority) break; } targetedHandlers.Insert(i, intarget); TouchInfo newTouchInfo = new TouchInfo(); newTouchInfo.swallowsTouches = inswallowsTouches; newTouchInfo.touchPriority = inTouchPriority; targetedHandlersTouchInfo.Insert(i, newTouchInfo); }
public void addTargetedDelegate(TouchTargetedDelegate intarget, int inTouchPriority, bool inswallowsTouches) { int i = 0; //searching for place to insert delegate for (i = 0; i < targetedHandlers.Count; i++) { if ((targetedHandlersTouchInfo[i] as TouchInfo).touchPriority > inTouchPriority) { break; } } targetedHandlers.Insert(i, intarget); TouchInfo newTouchInfo = new TouchInfo(); newTouchInfo.swallowsTouches = inswallowsTouches; newTouchInfo.touchPriority = inTouchPriority; targetedHandlersTouchInfo.Insert(i, newTouchInfo); }
public void removeDelegate(TouchTargetedDelegate intarget) { //add one to remove list targetedHandlersToDel.Add(intarget); }