Hoping someone can help me here. For my SkylabII and flexcraft , Pod2001,.... there are joints in the RMS that can rotate 360 degrees. I know normal animation goes from 0-1. Outside of a dialogue box I can have code like if animation proc >1 then it is 0 and <0 then 1. So the joint can go around with out stopping.
BUT Not sure how to add that in the dialogue box. This is what i have:
if (SendDlgItemMessage(hWnd, IDC_JOINT2UP, BM_GETSTATE, 0, 0) & BST_PUSHED) {
sts->JOINT2_proc = max(0.0, sts->JOINT2_proc - (t1 - t0)*ARM_OPERATING_SPEED);
sts->SetAnimationArm(sts->anim_JOINT2, sts->JOINT2_proc);
if (SendDlgItemMessage(hWnd, IDC_JOINT2DOWN, BM_GETSTATE, 0, 0) & BST_PUSHED) {
sts->JOINT2_proc = min(1.0, sts->JOINT2_proc + (t1 - t0)*ARM_OPERATING_SPEED);
sts->SetAnimationArm(sts->anim_JOINT2, sts->JOINT2_proc);