EliotR Posted November 13, 2023 Share Posted November 13, 2023 Hello, I'd like to do something when the system button is pressed and the Vive menu shows up. However neither OnApplicationFocus() or OnApplicationPause() gets invoked when doing so. Am I missing something ? I've looked through the WaveXR events but haven't found anything corresponding. I'm on Vive Focus 3, Unity 2020.3.34f1, Using Wave XR Plugin - 5.4.0-r8 Would greatly appreciate any advice ! Cheers, - Eliot Link to comment Share on other sites More sharing options...
EliotR Posted November 13, 2023 Author Share Posted November 13, 2023 Ended up finding what I needed. This function will return true when the Vive menu is up, and false otherwise: Interop.WVR_IsInputFocusCapturedBySystem() I hope this can be helpful to others 🙂 Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted November 14, 2023 Share Posted November 14, 2023 Hi @EliotR, For OnApplicationPause(bool pause), this should be getting the true/false value for pause. You did not get any value change? Link to comment Share on other sites More sharing options...
Marc Moukarzel Posted November 14, 2023 Share Posted November 14, 2023 Hi @EliotR The real "suspend" happens after the HMD screen is off for 3 minutes so the OnApplicationPause will only fire then. 1 1 Link to comment Share on other sites More sharing options...
EliotR Posted November 14, 2023 Author Share Posted November 14, 2023 Hello @VIVE_chengnay, OnApplicationPause(bool pause) was never called when I needed it. As @Mark Moukarzel said, and as I have seen elsewhere on the forums, this is only called after 3 mins of the HMD being idle. This does not fit my use case, so I'm currently using Interop.WVR_IsInputFocusCapturedBySystem() which seems to work fine. Thank you both for your replies ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now