Kinect.KinectManager.GetGestureAtIndex C# (CSharp) Method

GetGestureAtIndex() public method

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
return 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