public GestureMap()
        {
            _controller = new Leap.Controller();

            _controller.EnableGesture(Leap.Gesture.GestureType.TYPE_SWIPE);
            _controller.EnableGesture(Leap.Gesture.GestureType.TYPE_CIRCLE);
            _controller.EnableGesture(Leap.Gesture.GestureType.TYPE_SCREEN_TAP);

            _controller.AddListener(this);
        }
예제 #2
0
 //NOTE: I'm giving all inputs of mutable data (like Leap.Controller) also as an output of the method, to avoid timing ambiguity in VL
 public static void SetGestureEnabled(Leap.Controller controller, out Leap.Controller controllerOut, GestureType gestureType, bool set)
 {
     controllerOut = controller;
     controller.EnableGesture((Leap.Gesture.GestureType)gestureType, set);
 }