Пример #1
0
        internal void fireTouchEnded(TouchInfo info)
        {
            Finger finger;

            if (fingers.TryGetValue(info.id, out finger))
            {
                if (FingerEnded != null)
                {
                    FingerEnded.Invoke(finger);
                }

                fingers.Remove(info.id);
                finger.finished();
            }
        }
Пример #2
0
        private Finger findFinger(TouchInfo info)
        {
            Finger finger;

            if (!fingers.TryGetValue(info.id, out finger))
            {
                finger = fingerPool.getPooledObject();
                fingers.Add(info.id, finger);
                finger.setInfoOutOfPool(info.id, info.normalizedX, info.normalizedY, info.pixelX, info.pixelY);

                //This might happen in a touch started or touch moved event.
                if (FingerStarted != null)
                {
                    FingerStarted.Invoke(finger);
                }
            }
            return(finger);
        }
Пример #3
0
 protected void fireTouchMoved(TouchInfo touchInfo)
 {
     touches.fireTouchMoved(touchInfo);
 }
Пример #4
0
 protected void fireTouchStarted(TouchInfo touchInfo)
 {
     touches.fireTouchStarted(touchInfo);
 }
Пример #5
0
 internal void fireTouchStarted(TouchInfo info)
 {
     findFinger(info);
 }