Kinect.KinectManager.IsRightHandConfidenceHigh C# (CSharp) Method

IsRightHandConfidenceHigh() public method

Determines whether the right hand confidence is high for the specified user.
public IsRightHandConfidenceHigh ( Int64 userId ) : bool
userId Int64 User ID
return bool
        public bool IsRightHandConfidenceHigh(Int64 userId)
        {
            if (dictUserIdToIndex.ContainsKey(userId))
            {
                int index = dictUserIdToIndex[userId];

                if (index >= 0 && index < sensorData.bodyCount &&
                    bodyFrame.bodyData[index].bIsTracked != 0)
                {
                    return (bodyFrame.bodyData[index].rightHandConfidence == KinectInterop.TrackingConfidence.High);
                }
            }

            return false;
        }
KinectManager