Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public override void MergeInputInfo(IRecordInputInfo inputInfo)
 {
     throw new UnityException("MergeInputInfo method not implemented!");
 }
Ejemplo n.º 3
0
 public abstract void MergeInputInfo(IRecordInputInfo inputInfo);