Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums will be revoked at the discretion of Oculus staff.
New to the forums? Click here to read the How To guide. -- Developers click here.

Oculus Go back button randomly detected

KosTargoKosTargo Posts: 4
NerveGear
Hi,

I'm facing a weird problem with the back button on the Oculus Go.
I'm developing my app with Unity 2018.1.0f2, Oculus SDK 1.25.2 and VRTK 3.3 and my last step to upload my app on oculus store is to make the back button requirement. (Enable Universal Menu when back button is pressed)

Unfortunately, the back button event is catch randomly. I need to spam the button if I want the event called.

I tried different ways :

void Update ()
    {
        OVRInput.Update();
        Debug.Log("Update");
        if (OVRInput.Get(OVRInput.Button.Back))
            OVRPlugin.ShowUI(new OVRPlugin.PlatformUI()); if (OVRInput.GetDown(OVRInput.Button.Back)) OVRPlugin.ShowUI(new OVRPlugin.PlatformUI());
    }
  
 public VRTK_ControllerEvents m_Event;

    private void Start()
    {
        m_Event.ButtonTwoPressed += (sender, e) => { OVRPlugin.ShowUI(new OVRPlugin.PlatformUI()); };
        m_Event.ButtonTwoReleased += (sender, e) => { OVRPlugin.ShowUI(new OVRPlugin.PlatformUI()); };
        m_Event.ButtonTwoTouchStart += (sender, e) => { OVRPlugin.ShowUI(new OVRPlugin.PlatformUI()); };
        m_Event.ButtonTwoTouchEnd += (sender, e) => { OVRPlugin.ShowUI(new OVRPlugin.PlatformUI()); };
    }

But the result is still the same. 

Do I miss something ?

Comments

  • KosTargoKosTargo Posts: 4
    NerveGear
  • imperativityimperativity Posts: 3,587 Valuable Player
    Hi,

    You are using an OVRManager in your Unity scene right?

    If you are, are you saying that you need to incorporate further logic to detect the button press?
  • juanoldinhojuanoldinho Posts: 131 Oculus Staff
    @KosTargo

    Do you have OVRManager in your scene? If so you do not need to call OVRInput.Update() in the Update() method. That may be why the back button is not getting caught consistently.

    Also the OVRPlatformMenu script provides a short press handler, which can either show the Confirm Quit menu, or retreat one level of your application, until the main scene is reached and it displays the Confirm Quit menu.
    Please tag me, @juanoldinho, in your forum post/response if you need immediate assistance or want additional support or context on an issue you are having with our software or integrations.

    Having an issue with our platform, services, or integrations?

    Try using our new bug tool to report this and receive emailed updates as we proceed to address it internally.
  • juanoldinhojuanoldinho Posts: 131 Oculus Staff
    Also, when you check for the back button you can just check using Get(), then use
    if (OVRInput.Get (OVRInput.Button.Back)) {
    	OVRDebugInfo.print ("pressed back button");
    	OVRManager.PlatformUIConfirmQuit ();
    }


    Please tag me, @juanoldinho, in your forum post/response if you need immediate assistance or want additional support or context on an issue you are having with our software or integrations.

    Having an issue with our platform, services, or integrations?

    Try using our new bug tool to report this and receive emailed updates as we proceed to address it internally.
  • KosTargoKosTargo Posts: 4
    NerveGear
    @imperativity  
    Yes I'm using OVRManager because I'm using the OVRCameraRig prefab.
    I don't understand your second question, all I can say is that nothing works to detect correctly the back button.

    @juanoldinho  
    I know for the OVRInput.Update(), but with or without it, the result is the same. Also for OVRInput.Get...
    Thank you for the OVRPlatformMenu script but the result is still the same. I need to spam the back button and it works 1 on X(random) times.
  • KosTargoKosTargo Posts: 4
    NerveGear
    @juanoldinho
    BTW, even with OVRInput.Button.any, the problem is still here. All the buttons respond correctly but not the back button.
  • imperativityimperativity Posts: 3,587 Valuable Player
    @KosTargo

    I have confirmed internally that this is an issue that specifically effects Unity 2018.1 can you please update to 2018.2 or later? This issue will be resolved then. 
  • jhone.gjhone.g Posts: 1
    NerveGear
    @imperativity
    I have this problem using Unity 2017.2.4.2f2 and Oculus Utilities 1.22
  • imperativityimperativity Posts: 3,587 Valuable Player
    @jhone.g

    Can you please upgrade your version of Oculus Utilities?
  • JacobHomanicsJacobHomanics Posts: 7
    NerveGear
    Hi, so I am actually encountering this issue with the latest version Oculus Integration and Unity 2018.2.14f1. It is the exact same issue.
  • paulodgnpaulodgn Posts: 2
    NerveGear
    Im having the exact same problem. Is there any solution? Using Unity 2017.3 and Oculos GO.
  • r0b0sarur0b0saru Posts: 45 Oculus Start Member
    Any update to a fix for this? Having the same issue (2018.1.9f2)
  • pnaidupnaidu Posts: 1
    NerveGear
    edited January 11
    Same issue on Unity 2018.3.0f2 with Oculus Integration 1.32 for the Oculus Go Back Button only
  • AndyBorrellAndyBorrell Posts: 24
    Brain Burst
    edited January 11
    (I am not Oculus staff - ignore flair)
    I'm also having this issue.   Unity 2017.4.11f1 + Oculus Integration 1.32 on the Oculus Go.    Back button presses are not detected about 10% of the time.
  • MikeSwansonMikeSwanson Posts: 22
    Brain Burst
    I shared this repro (that includes two bugs) with Oculus. It's a Unity 2018.3.0f2 project that includes Oculus Integration 1.32.0: https://drive.google.com/file/d/1-0_vi6KakQ_iNPDwFKrBKtlR8iwPu9K-/view?usp=sharing

    Here's a video of the two bugs. The first is me pressing the back button on the Oculus Go controller. I recorded my actual button presses and merged it with the video capture, so you can hear each press. You'll see that not every press is reported by OVRInput (as described in this thread).

    After that, I pull the trigger while loading an image from the web. You'll see that the tracking briefly glitches, which is another bug we're fighting with the 1.32.0 integration. Subsequent trigger presses and loads work just fine: https://drive.google.com/file/d/1-UaCWaI_NwucG4ooalbB8okFYfa3wqVT/view?usp=sharing
  • MikeSwansonMikeSwanson Posts: 22
    Brain Burst
    For what it's worth, this issue exists in 1.32, 1.31, and 1.30. However, it does not exist in 1.28. Unfortunately, I don't have version 1.29 handy, and it's possible that it would work correctly too.
  • perceptimageryperceptimagery Posts: 1
    NerveGear
    Hi. I have the same issue. I am surprised there has been so much time since the OP posted this and no reply from Oculus team. I just had to downgrade to 1.28 because in my case, it was only detecting the back button 20% of the time. I hope they release a hotfix for this soon.
Sign In or Register to comment.