Esempio n. 1
0
    protected void OneHandDownGrabbing(GestureDownLongSwap gesture)
    {
        if (!gesture.SwapLevelAdded)
        {
            return;
        }
        switch (facingTarget)
        {
        case FacingTarget.LeftMenu:
            LeftMenuSelectLast();
            return;

        case FacingTarget.Map:
            MapLayerSwitchLast();
            return;

        case FacingTarget.RightMenu:
            RightMenuSelectLast();
            return;

        case FacingTarget.RightMenuSub:
            RightMenuSubSelectLast();
            return;
        }
    }
Esempio n. 2
0
    protected void LeapGestureInit()
    {
        //set up all gesture models
        gestureSplit       = new GestureSplit();
        gestureClap        = new GestureClap();
        gestureLeftSwapLH  = new GestureLeftSwap();
        gestureRightSwapLH = new GestureRightSwap();
        //gestureUpSwapLH = new GestureUpSwap();
        //gestureDownSwapLH = new GestureDownSwap();
        gestureUpLongSwapLH   = new GestureUpLongSwap();
        gestureDownLongSwapLH = new GestureDownLongSwap();
        gestureGrabLH         = new GestureGrab();
        gestureGrabbingLH     = new GestureGrabbing();

        gestureLeftSwapRH  = new GestureLeftSwap();
        gestureRightSwapRH = new GestureRightSwap();
        //gestureUpSwapRH = new GestureUpSwap();
        //gestureDownSwapRH = new GestureDownSwap();
        gestureUpLongSwapRH   = new GestureUpLongSwap();
        gestureDownLongSwapRH = new GestureDownLongSwap();
        gestureGrabRH         = new GestureGrab();
        gestureGrabbingRH     = new GestureGrabbing();
    }