I try to get the left and right button from the GearVR Touchpad via OVRInput, but it doesn’t work.
The scene has an OVR Camera Rig including an OVRManager.
The code looks like this:
A couple of things that I learned when making the Gear VR controller asset in my signature.
First, I don’t think your version of Unity has the version of OVRPlugin (not the utilities) that supported the controller (unless you are talking about the HMD). The link below specifically stated versions that had it. In the 5.5.x series it was the 3rd patch release to 5.5.2. I’d either switch versions or manually take the file and put it into the version you are using.
Hi,
thanks for your reply. I was indeed referring to the HMD Touchpad. I solved it now. The names “GetUp”, “Button” and “DpadLeft” made me believe that you could get a tap on DpadLeft/Right, but it only gets triggered by swipes.
Yeah everything on the HMD pad is swipe based. Even if you grab the coordinates regardless of where you first touch it starts at 0,0 and only changes as you swipe. In some ways I understand this because unlike the controller where you have a feel for where the grooves are the HMD is moving and your first stab at “center” was always off despite the grooves on the 2015 headset or the little nub on the later ones. Only the controller returns absolute position the HMD is always swipe based.
Hey; just read through this thread and it is the exact problem i am having. Troubles with the D-pad on the gearVR and unity. ive tried the OVRcamera rig and other scripting to no success. im new to unity and scripting is new to me; is it possible for someone to publish their exact script they are using to place into the OVRcamera rig (or just upload a camera rig i could use that would work with the headset?) , it would really be appreciated!
I had something working as a test for this (gear vr touchpad tap) a few months ago, and now it is suddenly not working…it was simply
if (Input.GetMouseButtonDown(0))
{
Instantiate(cube);
}
(with a cube prefab)
Did oculus change something without telling us?
According to documentation, the below should work, but it doesn’t
if (OVRInput.GetDown(OVRInput.Button.One))
{
Instantiate(cube);
}
Does anyone know if this has anything to do with the “new” controller? Have they accidentally disabled the pad?