Kinect.KinectManager.IsTrackingGesture C# (CSharp) Method

IsTrackingGesture() public method

Determines whether the given gesture is in the list of gestures for the specified user.
public IsTrackingGesture ( Int64 UserId, KinectGestures gesture ) : bool
UserId Int64 User ID
gesture KinectGestures Gesture type
return bool
        public bool IsTrackingGesture(Int64 UserId, KinectGestures.Gestures gesture)
        {
            List<KinectGestures.GestureData> gesturesData = playerGesturesData.ContainsKey(UserId) ? playerGesturesData[UserId] : null;
            int index = gesturesData != null ? GetGestureIndex(gesture, ref gesturesData) : -1;

            return index >= 0;
        }
KinectManager