Kinect.KinectManager.GetRightHandState C# (CSharp) Méthode

GetRightHandState() public méthode

Gets the right hand state for the specified user.
public GetRightHandState ( Int64 userId ) : KinectInterop.HandState
userId Int64 User ID
Résultat KinectInterop.HandState
        public KinectInterop.HandState GetRightHandState(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].rightHandState;
                }
            }

            return KinectInterop.HandState.NotTracked;
        }
KinectManager