//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public override void UpdateInput() { Frame leapFrame = LeapUtil.GetValidLeapFrame(vLeapControl); vMenuL.Rebuild(LeapUtil.GetValidLeapHand(leapFrame, true)); vMenuR.Rebuild(LeapUtil.GetValidLeapHand(leapFrame, false)); }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public override void UpdateInput() { Frame frame = LeapUtil.GetValidLeapFrame(vLeapControl); Hand leapHandL = LeapUtil.GetValidLeapHand(frame, true); Hand leapHandR = LeapUtil.GetValidLeapHand(frame, false); if (!IsEnabled) { leapHandL = null; leapHandR = null; } foreach (InputCursor cursor in vCursors) { cursor.UpdateWithHand(vSideMap[cursor.Type] ? leapHandL : leapHandR); } }