Example #1
0
        public KinectService(IKinectSensorAdapterFactory kinectSensorAdapterFactory, IKinectSettings settings)
        {
            _kinectSensorAdapterFactory = kinectSensorAdapterFactory;
            _settings = settings;

            _kinectSensorAdapterFactory.StatusChanged += KinectSensorsOnStatusChanged;

            KinectAdapter = _kinectSensorAdapterFactory.GetFirstKinectSensor();

            OnKinectStatusChanged(KinectAdapter != null ? KinectAdapter.Status : KinectStatus.Disconnected);
        }
Example #2
0
        public KinectService(IKinectSensorAdapterFactory kinectSensorAdapterFactory, IKinectSettings settings)
        {
            _kinectSensorAdapterFactory = kinectSensorAdapterFactory;
            _settings = settings;

            _kinectSensorAdapterFactory.StatusChanged += KinectSensorsOnStatusChanged;

            KinectAdapter = _kinectSensorAdapterFactory.GetFirstKinectSensor();

            OnKinectStatusChanged(KinectAdapter != null ? KinectAdapter.Status : KinectStatus.Disconnected);
        }