Esempio n. 1
0
    protected void OneHandUpGrabbing(GestureUpLongSwap gesture)
    {
        if (!gesture.SwapLevelAdded)
        {
            return;
        }
        switch (facingTarget)
        {
        case FacingTarget.LeftMenu:
            LeftMenuSelectNext();
            return;

        case FacingTarget.Map:
            MapLayerSwitchNext();
            return;

        case FacingTarget.RightMenu:
            RightMenuSelectNext();
            return;

        case FacingTarget.RightMenuSub:
            RightMenuSubSelectNext();
            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();
    }