예제 #1
0
    //*****************************************************************************//
    //standard tap event
    public static void MultiTap(Tap tap)
    {
        if (tap.fingerCount == 1)
        {
            if (tap.count == 1)
            {
                if (onShortTapE != null)
                {
                    onShortTapE(tap.pos);
                }
            }
            else if (tap.count == 2)
            {
                if (onDoubleTapE != null)
                {
                    onDoubleTapE(tap.pos);
                }
            }

            if (instance.enableMultiTapFilter)
            {
                instance.CheckMultiTap(tap);
            }
            else if (onMultiTapE != null)
            {
                onMultiTapE(tap);
            }
        }
        else
        {
            if (tap.fingerCount == 2)
            {
                if (tap.count == 1)
                {
                    DFShortTap(tap.pos);
                }
                else if (tap.count == 2)
                {
                    DFDoubleTap(tap.pos);
                }
            }

            if (instance.enableMultiTapFilter)
            {
                instance.CheckMFMultiTap(tap);
            }
            else if (onMFMultiTapE != null)
            {
                onMFMultiTapE(tap);
            }
        }
    }