private void rhClient_ButtonChanged(object sender, ButtonChangeEventArgs e)
{
//If both hands are on this server, check the left hand channel
if (lhName != null && rhName == lhName)
{
if (e.Button == masterKinectSettings.lhChannel)
{
lastSkeleton.leftHandClosed = e.IsPressed;
}
}
//Always check the right hand channel
if (e.Button == masterKinectSettings.rhChannel)
{
lastSkeleton.rightHandClosed = e.IsPressed;
}
}