public LeapMotionGestureControl() { // Set up listener and controller listener = new LeapMotionGestureControlListener(); controller = new Controller(); // Allow background frames, otherwise.. well, it's useless controller.SetPolicy(Controller.PolicyFlag.POLICY_BACKGROUND_FRAMES); // Watch for circles controller.EnableGesture(Gesture.GestureType.TYPE_CIRCLE); controller.EnableGesture(Gesture.GestureType.TYPE_KEY_TAP); controller.EnableGesture(Gesture.GestureType.TYPE_SWIPE); // Add on the listener controller.AddListener(listener); }