Oculusボタン



Oculus Button



// OVRInput.Update() if (OVRInput.GetUp(OVRInput.Button.Three)) { Debug.Log('remote click') text.text = 'X' } if (OVRInput.GetUp(OVRInput.Button.Four)) { Debug.Log('remote click') text.text = 'Y' } if (OVRInput.Get(OVRInput.Button.One,OVRInput.Controller.RTouch)) { Debug.Log('attack key A') text.text = 'Attack A' } if (OVRInput.Get(OVRInput.Button.Two, OVRInput.Controller.RTouch)) { Debug.Log('attack key B') text.text = 'ATTack B' } //if (OVRInput.Get(OVRInput.RawButton.LThumbstickUp)) //{ // Debug.Log('left side remote sensing') // text.text = 'LeftSide' //} //if (OVRInput.Get(OVRInput.RawButton.LThumbstickDown)) //{ // Debug.Log('left side remote sensing') // text.text = 'LeftSide' //} ////The right side of the remote sensing is up and down //if (OVRInput.Get(OVRInput.RawButton.RThumbstickUp)) //{ // Debug.Log('right side remote') // text.text = 'RThumbstickUp' //} //if (OVRInput.Get(OVRInput.RawButton.RThumbstickDown)) //{ // Debug.Log('right side remote') // text.text = 'RThumbstickDown' //} //if (OVRInput.Get(OVRInput.RawButton.RThumbstickRight)) //{ // Debug.Log('right side remote') // text.text = 'RThumbstickRight' //} //if (OVRInput.Get(OVRInput.RawButton.RThumbstickLeft)) //{ // Debug.Log('right side remote') // text.text = 'RThumbstickLeft' //} vt =OVRInput.Get(OVRInput.Axis2D.PrimaryThumbstick) if (vt.x != 0 && vt.y != 0) { text.text = vt.x + ' ' + vt.y } vt = OVRInput.Get(OVRInput.Axis2D.SecondaryThumbstick) if (vt.x != 0 && vt.y != 0) { text.text = vt.x + ' ' + vt.y } //shoot float aa=OVRInput.Get(OVRInput.Axis1D.PrimaryIndexTrigger) if (aa!= 0) { text.text = aa+ ' A1' } aa = OVRInput.Get(OVRInput.Axis1D.SecondaryIndexTrigger) if (aa != 0) { text.text = aa + ' A2' } //grip button float aaa=OVRInput.Get(OVRInput.Axis1D.PrimaryHandTrigger) if (aaa != 0) { text.text = aaa + ' AAAA1' } aaa = OVRInput.Get(OVRInput.Axis1D.SecondaryHandTrigger) if (aaa != 0) { text.text = aaa + ' AAAA2' } / / Remote sensing button if (OVRInput.Get(OVRInput.Button.PrimaryThumbstick)) { text.text = '1' Debug.Log('1') } if (OVRInput.Get(OVRInput.Button.SecondaryThumbstick)) { text.text = '2' Debug.Log('2') } //Touch the button if (OVRInput.Get(OVRInput.Touch.PrimaryThumbRest)) { text.text = '3' Debug.Log('3') } if (OVRInput.Get(OVRInput.Touch.SecondaryThumbRest)) { text.text = '4' Debug.Log('4') }