Forum Discussion
svenneve
8 years agoExplorer
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.
(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
- svenneveExplorerOkay, '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_bearRetired Support@svenneve Thank you for the info and update! This is good feedback for us to add to our body of knowledge.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 months ago
- 8 months ago