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; } }
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(); }