CCT.NUI.MouseControl.MainWindow.CreateControllerInTrackingMode C# (CSharp) Method

CreateControllerInTrackingMode() private method

private CreateControllerInTrackingMode ( ) : void
return void
        private void CreateControllerInTrackingMode()
        {
            //this.handDataSource = new HandDataSource(this.factory.CreateShapeDataSource(this.trackingClusterDataSource));
            //this.mouseController = new MouseController(this.handDataSource, this.trackingClusterDataSource);
            this.clusterDataSource = this.factory.CreateClusterDataSource(new ClusterDataSourceSettings { MaximumDepthThreshold = 900 });
            this.handDataSource = new HandDataSource(this.factory.CreateShapeDataSource(this.clusterDataSource, new Core.Shape.ShapeDataSourceSettings()));
            this.mouseController = new MouseController(this.handDataSource);

            this.mouseController.Enabled = this.buttonToggle.IsChecked.Value;
            this.handDataSource.Start();
        }