Exemple #1
0
    void UpdatePerFinger()
    {
        for (int i = 0; i < EasyFingerGestues.instance.mFingers.Length; i++)
        {
            Finger      finger  = EasyFingerGestues.instance.mFingers[i];
            T           gesture = _gestures[0];
            CFingerList touches = tempTouches;
            touches.Clear();


            if (finger.IsDown())
            {
                touches.Add(finger);
            }

            if (gesture.state == GestureState.Ready)
            {
                if (CanBegin(gesture, touches))
                {
                    Begin(gesture, touches);
                }
            }

            UpdateGesture(gesture, touches);
        }
    }