Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
AgentSmithh's avatar
AgentSmithh
Explorer
9 years ago

Oculus Button.One same as GearVR Button.One?

I have an interactive 360 video scene created for GearVR. When I connect an Oculus Rift it's Button.One or Fire1 is not recognized. The result is that for GearVR buttons placed in that scene are working but for Oculus they are not.

I expected GearVR Button.One to be the same as Oculus Button.One.

What do I have to do to get the Oculus Button.One working?

Unity 5.4 / Oculus SDK 1.9

Cheers,
Martin  

2 Replies

Replies have been turned off for this discussion
  • kersk's avatar
    kersk
    Meta Employee
    Hi Martin,

    Can you confirm you're using OVRInput from the Oculus Unity Utilities package? This should work correctly with the latest 1.9 Oculus Unity Utilities (which added GearVR Touchpad support to OVRInput).

    The 1.9 Oculus Unity Utilities package is available for download here: https://developer3.oculus.com/downloads/game-engines/1.9.0/Oculus_Utilities_for_Unity_5/

    If you're already using the 1.9 Utilities, it should work like this:
    if (OVRInput.GetDown(OVRInput.Button.One))
    {
    // Button.One was pressed this frame
    // This works for GearVR Touchpad + Gamepad and Rift Touch + Gamepad + Remote

    // Your code here
    }
     If that's still not working for you, please post a snippet of your input code so I can help you troubleshoot this.

    Thanks!