public Boolean CheckAccessoriesNew()
{
if (_activeSkeleton != null && AccessoryRect != null)
{
Point left = SkeletonPointToScreen(_activeSkeleton.Joints[JointType.HandLeft].Position);
Point right = SkeletonPointToScreen(_activeSkeleton.Joints[JointType.HandRight].Position);
if ((left.X >= AccessoryRect.Left && left.X <= AccessoryRect.Right &&
left.Y >= AccessoryRect.Top && left.Y <= AccessoryRect.Bottom) ||
(right.X >= AccessoryRect.Left && right.X <= AccessoryRect.Right &&
right.Y >= AccessoryRect.Top && right.Y <= AccessoryRect.Bottom))
{
return true;
}
}
return false;
}