示例#1
0
    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);
    }
示例#3
0
    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);
    }
示例#4
0
 public void removeDelegate(TouchTargetedDelegate intarget)
 {
     //add one to remove list
     targetedHandlersToDel.Add(intarget);
 }
 public void removeDelegate(TouchTargetedDelegate intarget)
 {
     //add one to remove list
     targetedHandlersToDel.Add(intarget);
 }