|
|
|
@ -25,7 +25,10 @@ namespace KinectUtils
|
|
|
|
|
{
|
|
|
|
|
foreach (var gesture in gestures)
|
|
|
|
|
{
|
|
|
|
|
KnownGestures.Add(gesture);
|
|
|
|
|
if (!gestures.Contains(gesture))
|
|
|
|
|
{
|
|
|
|
|
KnownGestures.Add(gesture);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
static public void RemoveGesture(BaseGesture gesture)
|
|
|
|
@ -51,10 +54,7 @@ namespace KinectUtils
|
|
|
|
|
{
|
|
|
|
|
foreach(var gesture in KnownGestures)
|
|
|
|
|
{
|
|
|
|
|
if (gesture.TestGesture(body))
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
gesture.TestGesture(body);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|