public bool GestureCompleted (long userId, int userIndex, KinectGestures.Gestures gesture,
KinectInterop.JointType joint, Vector3 screenPos)
{
// the gestures are allowed for the primary user only
if(userIndex != playerIndex)
return false;
sGestureText = gesture + " detected";
Debug.Log( sGestureText);
if (gesture == KinectGestures.Gestures.SwipeLeft)
swipeLeft = true;
if(gesture == KinectGestures.Gestures.SwipeRight)
swipeRight = true;
if(gesture == KinectGestures.Gestures.SwipeUp)
swipeUp = true;
if(gesture == KinectGestures.Gestures.RaiseLeftHand)
RaiseLeftHand = true;
if (gesture == KinectGestures.Gestures.RaiseRightHand)
RaiseRightHand = true;
if (gesture == KinectGestures.Gestures.Tpose)
{
Tpose = true;
}
else
{
Tpose = false;
}
return true;
}