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

GetGestureAtIndex() 공개 메소드

Gets the gesture at the specified index for the given user.
public GetGestureAtIndex ( Int64 UserId, int i ) : KinectGestures.Gestures
UserId Int64 User ID
i int Index
리턴 KinectGestures.Gestures
        public KinectGestures.Gestures GetGestureAtIndex(Int64 UserId, int i)
        {
            List<KinectGestures.GestureData> gesturesData = playerGesturesData.ContainsKey(UserId) ? playerGesturesData[UserId] : null;

            if (gesturesData != null)
            {
                if (i >= 0 && i < gesturesData.Count)
                {
                    return gesturesData[i].gesture;
                }
            }

            return KinectGestures.Gestures.None;
        }
KinectManager