private MouseControlState UpdateHandMouseControl(int handIndex, MouseControlState controlState) { if (controlState == MouseControlState.ShouldClick) { if (!handGrips[handIndex]) { MouseControl.Click(); handGrips[handIndex] = true; return(MouseControlState.Clicked); } } else if (controlState == MouseControlState.ShouldPress) { if (!handGrips[handIndex]) { MouseControl.PressDown(); handGrips[handIndex] = true; return(MouseControlState.PressedDown); } } else if (controlState == MouseControlState.ShouldRelease && handGrips[handIndex]) { ReleaseGrip(handIndex); return(MouseControlState.PressedUp); } return(MouseControlState.None); }
private void UpdateHandMouseControl(int handIndex, MouseControlState controlState) { if (controlState == MouseControlState.ShouldClick) { if (!handGrips[handIndex]) { MouseControl.Click(); handGrips[handIndex] = true; } } else if (controlState == MouseControlState.ShouldPress) { if (!handGrips[handIndex]) { MouseControl.PressDown(); handGrips[handIndex] = true; } } else if (controlState == MouseControlState.ShouldRelease && handGrips[handIndex]) { ReleaseGrip(handIndex); } }