Kinect.KinectManager.GetLeftHandState C# (CSharp) 메소드

GetLeftHandState() 공개 메소드

Gets the left hand state for the specified user.
public GetLeftHandState ( Int64 userId ) : KinectInterop.HandState
userId Int64 User ID
리턴 KinectInterop.HandState
        public KinectInterop.HandState GetLeftHandState(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].leftHandState;
                }
            }

            return KinectInterop.HandState.NotTracked;
        }
KinectManager