Example #1
0
 public override bool GetTouch(NVRButtons button)
 {
     return((button == NVRButtons.Touchpad) ? GvrController.IsTouching : false);
 }
Example #2
0
 public override float GetAxis1D(NVRButtons button)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public override bool GetNearTouchUp(NVRButtons button)
 {
     throw new NotImplementedException();
 }
Example #4
0
 public override bool GetTouchUp(NVRButtons button)
 {
     return((button == NVRButtons.Touchpad) ? Input.GetMouseButtonUp(0): OVRInput.GetUp(GetButtonMap(button)));
 }
Example #5
0
 public override bool GetNearTouch(NVRButtons button)
 {
     return(false);
 }
Example #6
0
 public override bool GetPressDown(NVRButtons button)
 {
     PrintNotEnabledError();
     return(false);
 }
Example #7
0
 public override void TriggerHapticPulse(ushort durationMicroSec = 500, NVRButtons button = NVRButtons.Touchpad)
 {
     PrintNotEnabledError();
 }
 public override bool GetTouchUp(NVRButtons button)
 {
     return(Input.GetButtonUp(GetTouchMap(button)));
 }
 public override bool GetNearTouch(NVRButtons button)
 {
     return(Input.GetButton(GetNearTouchMap(button)));
 }
 public override Vector2 GetAxis2D(NVRButtons button)
 {
     return(Vector2.zero);
 }
 public override bool GetPress(NVRButtons button)
 {
     return(Input.GetButton(GetButtonMap(button)));
 }
 public override float GetAxis1D(NVRButtons button)
 {
     return(Input.GetAxis(GetTriggerMap(button)));
 }
Example #13
0
 public override Vector2 GetAxis2D(NVRButtons button)
 {
     return((button == NVRButtons.Touchpad) ? GvrController.TouchPos : Vector2.zero);
 }
Example #14
0
 public override float GetAxis1D(NVRButtons button)
 {
     return(0.0f);
 }
Example #15
0
 public override float GetAxis1D(NVRButtons button)
 {
     PrintNotEnabledError();
     return(0);
 }
Example #16
0
 public override float GetAxis1D(NVRButtons button)
 {
     return(OVRInput.Get(GetTriggerMap(button), Controller));
 }
Example #17
0
 public override Vector2 GetAxis2D(NVRButtons button)
 {
     PrintNotEnabledError();
     return(Vector2.zero);
 }
Example #18
0
 public override Vector2 GetAxis2D(NVRButtons button)
 {
     return(OVRInput.Get(GetStickMap(button), Controller));
 }
Example #19
0
 public override bool GetTouchUp(NVRButtons button)
 {
     PrintNotEnabledError();
     return(false);
 }
Example #20
0
 public override bool GetPress(NVRButtons button)
 {
     return(OVRInput.Get(GetButtonMap(button), Controller));
 }
Example #21
0
 public override void TriggerHapticPulse(ushort durationMicroSec = 500, NVRButtons button = NVRButtons.Touchpad)
 {
     throw new NotImplementedException();
 }
Example #22
0
 public override bool GetTouchDown(NVRButtons button)
 {
     return(OVRInput.GetDown(GetTouchMap(button), Controller));
 }
Example #23
0
 public override bool GetTouch(NVRButtons button)
 {
     return((button == NVRButtons.Touchpad) ? Input.GetButton("Oculus_GearVR_TouchPad") : OVRInput.Get(GetButtonMap(button)));
 }
Example #24
0
 public override bool GetNearTouch(NVRButtons button)
 {
     return(OVRInput.Get(GetNearTouchMap(button), Controller));
 }
Example #25
0
 public override void TriggerHapticPulse(ushort durationMicroSec = 500, NVRButtons button = NVRButtons.Touchpad)
 {
 }
Example #26
0
 public override void TriggerHapticPulse(ushort durationMicroSec = 500, NVRButtons button = NVRButtons.Touchpad)
 {
     StartCoroutine(DoHapticPulse(durationMicroSec));
 }
Example #27
0
 public override Vector2 GetAxis2D(NVRButtons button)
 {
     throw new NotImplementedException();
 }
Example #28
0
 public void LongHapticPulse(float seconds, NVRButtons button = NVRButtons.Grip)
 {
     StartCoroutine(DoLongHapticPulse(seconds, button));
 }
Example #29
0
 public override bool GetPressDown(NVRButtons button)
 {
     throw new NotImplementedException();
 }
 public override bool GetTouch(NVRButtons button)
 {
     return(OVRInput.Get(OVRInput.Button.DpadDown, Controller) || OVRInput.Get(OVRInput.Button.DpadUp, Controller) ||
            OVRInput.Get(OVRInput.Button.DpadLeft, Controller) || OVRInput.Get(OVRInput.Button.DpadRight, Controller) ||
            OVRInput.Get(OVRInput.Button.One, Controller));
 }