Kinect.KinectManager.IsGestureCancelled C# (CSharp) Method

IsGestureCancelled() public method

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

            if (index >= 0)
            {
                KinectGestures.GestureData gestureData = gesturesData[index];
                return gestureData.cancelled;
            }

            return false;
        }
KinectManager