|
|
@ -64,17 +64,6 @@ namespace KinectConnection
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.StatusText = this.kinectSensor.IsAvailable ? "Kinect Available" : "Kinect Not Available";
|
|
|
|
this.StatusText = this.kinectSensor.IsAvailable ? "Kinect Available" : "Kinect Not Available";
|
|
|
|
this.Status = this.kinectSensor.IsAvailable;
|
|
|
|
this.Status = this.kinectSensor.IsAvailable;
|
|
|
|
|
|
|
|
|
|
|
|
// if sensor is unplugged => trigger the stop method
|
|
|
|
|
|
|
|
if (!this.kinectSensor.IsAvailable)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this.StopSensor();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// if its plugged back => trigger the start method
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this.StartSensor();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|