Forum Discussion

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

OVRInput and Input blocked when virtual reality support is disabled

When I try to test a 2D / desktop mode version of our game built in Unity using the OVRInput class for player input with virtual reality support disabled, ALL input seems to be blocked (all inputs return false or 0).
(On top of that when VR is disabled OVRPlugin endlessly spews the famous 'ovrp_GetAppHasInputFocus return Failure_NotInitialized' warning', I thought this was fixed at some point?)

Is this a bug? Am I doing something wrong?

Unity 2017.2.0f3 with Oculus Utilities 1.21.0.

2 Replies

Replies have been turned off for this discussion
  • Okay, 'solved' it, so in case anyone runs into this, here's the run down.

    It seems in order to run desktop mode, you need to build with virtual reality support enabled, and start your build with '-vrmode none' (which didn't work), but what the manual fails to mention and the Oculus' 'Use Required Project Settings' script fails to do though, is adding the 'None' Virtual Reality SDK in your PlayerSettings.

    And since OVRInput needs to have a HMD present or it will simply fail, building with virtual reality support enabled makes sure OVRInput will work.
  • mouse_bear's avatar
    mouse_bear
    Retired Support
    @svenneve Thank you for the info and update! This is good feedback for us to add to our body of knowledge.