Exemplo n.º 1
0
        private GrabAndThrow InitializeGrabAndThrow(HandToWatch hand)
        {
            var gesture = new GrabAndThrow(hand);

            _detector.RegisterGesture(gesture);
            return(gesture);
        }
Exemplo n.º 2
0
 private void RegisterLeftHandGrabAndThrow(EventHandler <ulong> handler)
 {
     if (_leftHand == null)
     {
         _leftHand = InitializeGrabAndThrow(HandToWatch.HandLeft);
     }
     _leftHand.Detected += handler;
 }
Exemplo n.º 3
0
 private Program()
 {
     Logger.Info("Start Application");
     var manager = new KinectManager();
     var left = new Kinect.Gestures.GrabAndThrow(HandToWatch.HandLeft);
     left.Detected += LeftOnDetected;
     manager.RegisterGesture(left);
     var right = new Kinect.Gestures.GrabAndThrow(HandToWatch.HandRight);
     right.Detected += RightOnDetected;
     manager.RegisterGesture(right);
 }
Exemplo n.º 4
0
        private Program()
        {
            Logger.Info("Start Application");
            var manager = new KinectManager();
            var left    = new Kinect.Gestures.GrabAndThrow(HandToWatch.HandLeft);

            left.Detected += LeftOnDetected;
            manager.RegisterGesture(left);
            var right = new Kinect.Gestures.GrabAndThrow(HandToWatch.HandRight);

            right.Detected += RightOnDetected;
            manager.RegisterGesture(right);
        }
Exemplo n.º 5
0
 private GrabAndThrow InitializeGrabAndThrow(HandToWatch hand)
 {
     var gesture = new GrabAndThrow(hand);
     _detector.RegisterGesture(gesture);
     return gesture;
 }
Exemplo n.º 6
0
 private void RegisterRightHandGrabAndThrow(EventHandler<ulong> handler)
 {
     if (_rightHand == null) _rightHand = InitializeGrabAndThrow(HandToWatch.HandRight);
     _rightHand.Detected += handler;
 }
Exemplo n.º 7
0
 private void RegisterLeftHandGrabAndThrow(EventHandler<ulong> handler)
 {
     if (_leftHand == null) _leftHand = InitializeGrabAndThrow(HandToWatch.HandLeft);
     _leftHand.Detected += handler;
 }