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