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

ReportTouches() private method

private ReportTouches ( HandCollection data ) : IList
data CCT.NUI.HandTracking.HandCollection
return IList
        private IList<KinectTouchDevice> ReportTouches(HandCollection data)
        {
            var touchedDevices = new List<KinectTouchDevice>();
            foreach (var hand in data.Hands)
            {
                foreach (var fingerPoint in hand.FingerPoints)
                {
                    var device = this.GetDevice(hand.Id * handMultiplier + fingerPoint.Id);
                    var pointOnPresentationArea = this.MapToPresentationArea(fingerPoint, new Size(this.handDataSource.Size.Width, this.handDataSource.Height));
                    device.Touch(pointOnPresentationArea);
                    touchedDevices.Add(device);
                }
            }
            return touchedDevices;
        }