public override void MergeInputInfo(IRecordInputInfo inputInfo) { if (inputInfo.InputMethod() != RVInputMethod.SteamVR) { throw new UnityException("Not valid input info!"); } SteamVRInputInfo steamVRInputInfo = (SteamVRInputInfo)inputInfo; PressState = PressState | steamVRInputInfo.PressState; PressDownState = PressDownState | steamVRInputInfo.PressDownState; PressUpState = PressUpState | steamVRInputInfo.PressUpState; TouchState = TouchState | steamVRInputInfo.TouchState; TouchDownState = PressDownState | steamVRInputInfo.TouchDownState; TouchUpState = PressUpState | steamVRInputInfo.TouchUpState; AxisValue = new Vector2( Mathf.Max(AxisValue.x, steamVRInputInfo.AxisValue.x), Mathf.Max(AxisValue.y, steamVRInputInfo.AxisValue.y)); HairTriggerState = TouchState | steamVRInputInfo.HairTriggerState; HairTriggerDownState = PressDownState | steamVRInputInfo.HairTriggerDownState; HairTriggerUpState = PressUpState | steamVRInputInfo.HairTriggerUpState; }
public override void MergeInputInfo(IRecordInputInfo inputInfo) { throw new UnityException("MergeInputInfo method not implemented!"); }
public abstract void MergeInputInfo(IRecordInputInfo inputInfo);