예제 #1
0
    void removeDelegate(TouchTargetedDelegate intarget)
    {
        int index = targetedHandlers.IndexOf(intarget);

        targetedHandlersAccelerateInfo.RemoveAt(index);
        targetedHandlers.Remove(intarget);
    }
예제 #2
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);
    }
예제 #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);
 }
예제 #5
0
 public void removeDelegate(TouchTargetedDelegate intarget)
 {
     //add one to remove list
     targetedHandlersToDel.Add(intarget);
 }