Forum Discussion

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

(Solved) Opening Dash does not fire VrFocusLost event...

So I've recently submitted my app for review to be released on the store and one of the few requirements that I've failed is that the game doesn't stop rendering in-game hands or stop accepting input when opening the Dash menu. I've written some code to pause the game when OVRManager fires off the VrFocusLost/HMDUnmounted events, and it seems to be working just fine when taking the HMD off. Unfortunately, when opening Dash, VrFocusLost is not being fired (I've also tried with InputFocusLost), which it's my understanding that it should be. Am I incorrect in my understanding that opening Dash is meant to tell OVRManager that the game has lost VR/Input focus? If so is there some other way I can detect if the Dash is opened? Any help is greatly appreciated! Thanks!

Edit:
It's not as ideal as using an event, but I've managed to detect if the game has focus by running a check in update to see if OVRManager.hasInputFocus. I'm not sure why the event isn't firing when opening Dash as it's supposed to fire when that returns false, but at any rate, checking it myself in update is a workaround that I'll have to deal with for the time being unless someone knows how to have the event fire off correctly. Hopefully this can be useful to others encountering the issue.
No RepliesBe the first to reply