Esempio n. 1
0
    void removeDelegate(TouchTargetedDelegate intarget)
    {
        int index = targetedHandlers.IndexOf(intarget);

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