Exemplo n.º 1
0
 public void addBodyListener(BodyListener listener)
 {
     bodyListeners.Add(listener);
     if (bodyListeners.Count == 1)
     {
         bodyFrameReader = kinectSensor.BodyFrameSource.OpenReader();
         bodyFrameReader.FrameArrived += this.bodyFrameArrived;
     }
 }
Exemplo n.º 2
0
 public void addBodyListener(BodyListener listener)
 {
     bodyListeners.Add(listener);
     if (bodyListeners.Count == 1)
     {
         kinectSensor.SkeletonStream.Enable();
         kinectSensor.SkeletonStream.AppChoosesSkeletons = true;
         kinectSensor.SkeletonFrameReady += OnSkeletonFrameReady;
     }
 }