Forum Discussion

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

Simulate Xbox One Home Button Press?

Making a game that uses both Xbox One controllers and mouse for the Rift on PC.  When pressing the Home button on the Xbox One controller, it returns the users to the oculus home app and puts the game in a "suspend" mode.  I was wondering, is there a function call in the Unity utilities anywhere to replicate this functionality, such as when doing this when clicking on a UI button?

I tried using both

OVRManager.PlatformUIConfirmQuit();

OVRManager.PlatformUIGlobalMenu();

But these apparently only work on the Gear.

3 Replies

Replies have been turned off for this discussion
  • vrdaveb's avatar
    vrdaveb
    Oculus Staff
    Sorry, there is not a direct way to do this. The closest thing would be to exit VR mode using VR.VRSettings.enabled = false.

  • vrdaveb said:

    Sorry, there is not a direct way to do this. The closest thing would be to exit VR mode using VR.VRSettings.enabled = false.


    Thanks for the response!  I'll experiment with that for now.  If a player just clicks an "Exit Button" and I call Application.Quit, is that acceptable by Oculus's guidelines for a release?
  • vrdaveb's avatar
    vrdaveb
    Oculus Staff
    Some apps already do that, so I would expect it to be fine.