CCT.NUI.Touch.KinectMultiTouchDevice.handDataSource_NewDataAvailable C# (CSharp) Method

handDataSource_NewDataAvailable() private method

private handDataSource_NewDataAvailable ( HandCollection data ) : void
data CCT.NUI.HandTracking.HandCollection
return void
        private void handDataSource_NewDataAvailable(HandCollection data)
        {
            if (data.IsEmpty) 
            {
                ReportNoTouch(this.touchDevices.Values);
                return;
            }

            var touchedDevices = this.ReportTouches(data);
            this.ReportNoTouch(this.touchDevices.Values.Except(touchedDevices));
        }