OVRInput.GetUp not working correctly in Unity 2017.2 with GearVR Controller
So, I seem to have encountered an issue in Unity 2017.2 with Oculus Utilities v 1.18.1. Calling OVRInput.GetUp(OVRInput.Button.PrimaryIndexTrigger) does not return true when releasing the trigger on a GearVR Controller. I wrote the following code to test this: void Update () { if (OVRInput.GetDown(OVRInput.Button.PrimaryIndexTrigger)) { r1.material.color = Color.red; } if (OVRInput.GetUp(OVRInput.Button.PrimaryIndexTrigger)) { r1.material.color = Color.white; } if (OVRInput.GetDown(OVRInput.Button.PrimaryTouchpad)) { r2.material.color = Color.red; } if (OVRInput.GetUp(OVRInput.Button.PrimaryTouchpad)) { r2.material.color = Color.white; } if (OVRInput.GetDown(OVRInput.Button.Back)) { r3.material.color = Color.red; } if (OVRInput.GetUp(OVRInput.Button.Back)) { r3.material.color = Color.white; } } The Primary Touchpad and Back button work appropriately when the GetUp and GetDown functions are called, and GetDown works with the Trigger, but GetUp is just not working. I tried this same code in 2017.1 and it works fine.9.2KViews0likes23Comments[Gear VR Controller] 'Back key' not working at Unity 2017.2
I'm using Unity 2017.2 and Oculus SDK 1.19.0. For checking the status of Back key of My Gear VR Controller, I wrote the below simple code. bool isBackPressed = OVRInput.GetDown(OVRInput.Button.Back); When I tested... Unity 2017.1 & Oculus SDK 1.18.0 : No problem. Unity 2017.2 & Oculus SDK 1.18.0 : Back key is not work. Unity 2017.2 & Oculus SDK 1.19.0 : Back key is not work. I think that there is some problem when Unity update to OpenXR.. So.. I tried the below code. bool isBackPressed = OVRInput.GetDown(OVRInput.Button.Back) || OVRInput.GetDown(OVRInput.Button.Two); It's works... But sometimes it does not work. I think that Oculus developers should check the Input System if they update to Unity 2017.2.1.2KViews0likes3Comments