public override bool GetTouch(NVRButtons button) { return((button == NVRButtons.Touchpad) ? GvrController.IsTouching : false); }
public override float GetAxis1D(NVRButtons button) { throw new NotImplementedException(); }
public override bool GetNearTouchUp(NVRButtons button) { throw new NotImplementedException(); }
public override bool GetTouchUp(NVRButtons button) { return((button == NVRButtons.Touchpad) ? Input.GetMouseButtonUp(0): OVRInput.GetUp(GetButtonMap(button))); }
public override bool GetNearTouch(NVRButtons button) { return(false); }
public override bool GetPressDown(NVRButtons button) { PrintNotEnabledError(); return(false); }
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))); }
public override Vector2 GetAxis2D(NVRButtons button) { return((button == NVRButtons.Touchpad) ? GvrController.TouchPos : Vector2.zero); }
public override float GetAxis1D(NVRButtons button) { return(0.0f); }
public override float GetAxis1D(NVRButtons button) { PrintNotEnabledError(); return(0); }
public override float GetAxis1D(NVRButtons button) { return(OVRInput.Get(GetTriggerMap(button), Controller)); }
public override Vector2 GetAxis2D(NVRButtons button) { PrintNotEnabledError(); return(Vector2.zero); }
public override Vector2 GetAxis2D(NVRButtons button) { return(OVRInput.Get(GetStickMap(button), Controller)); }
public override bool GetTouchUp(NVRButtons button) { PrintNotEnabledError(); return(false); }
public override bool GetPress(NVRButtons button) { return(OVRInput.Get(GetButtonMap(button), Controller)); }
public override void TriggerHapticPulse(ushort durationMicroSec = 500, NVRButtons button = NVRButtons.Touchpad) { throw new NotImplementedException(); }
public override bool GetTouchDown(NVRButtons button) { return(OVRInput.GetDown(GetTouchMap(button), Controller)); }
public override bool GetTouch(NVRButtons button) { return((button == NVRButtons.Touchpad) ? Input.GetButton("Oculus_GearVR_TouchPad") : OVRInput.Get(GetButtonMap(button))); }
public override bool GetNearTouch(NVRButtons button) { return(OVRInput.Get(GetNearTouchMap(button), Controller)); }
public override void TriggerHapticPulse(ushort durationMicroSec = 500, NVRButtons button = NVRButtons.Touchpad) { }
public override void TriggerHapticPulse(ushort durationMicroSec = 500, NVRButtons button = NVRButtons.Touchpad) { StartCoroutine(DoHapticPulse(durationMicroSec)); }
public override Vector2 GetAxis2D(NVRButtons button) { throw new NotImplementedException(); }
public void LongHapticPulse(float seconds, NVRButtons button = NVRButtons.Grip) { StartCoroutine(DoLongHapticPulse(seconds, button)); }
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)); }