krasi_quarkvr Posted August 1, 2019 Share Posted August 1, 2019 We are having trouble determining whether the use has taken off the headset. Looks like WVR_EventType_DeviceSuspend and WVR_EventType_DeviceResume events are not fired. Please advice what's the correct way for the app to know the headset has been taken off, since we need to take additional actions. 2 Link to comment Share on other sites More sharing options...
Neuromouse Posted August 13, 2019 Share Posted August 13, 2019 Same problem here. Trying to catch these event the way described in Wave SDK manual - but no events fired. Im checking all sections in WVR_Event_t - common, device, input - no success. I still recieve some other events - like recenter or battery events. @Cotta @Tony PH Lin Link to comment Share on other sites More sharing options...
musk Posted August 14, 2019 Share Posted August 14, 2019 I don't know if you're using Unity, but if so, then maybe what you want is the OnApplicationFocus(bool focus) callback? I use it in my game and it works for detecting when user leaves the application (goes to Home, Library, Settings etc), but I haven't tested if it detects when user takes the headset off. Link to comment Share on other sites More sharing options...
Neuromouse Posted August 14, 2019 Share Posted August 14, 2019 Yes, I use Unity, but OnApplicationFocus is not working for me - not fired when headset off. 😞 Link to comment Share on other sites More sharing options...
Cotta Posted August 15, 2019 Share Posted August 15, 2019 Hi @krasi_quarkvr, @Neuromouse, The DeviceSuspend and DeviceResume events no longer sent out since a WAVE architecture redesign longer than a year ago. May I know the reason you need these events? Our expectation is that apps basically shouldn't be needing them. You can receive Android broadcasts for screen on/off if that's what you need. If there is a specific demand you must receive the two events, please share the use case and your expectation to us. If necessary we may study how to have them available again under current new architecture. Link to comment Share on other sites More sharing options...
Neuromouse Posted August 15, 2019 Share Posted August 15, 2019 Thanks, I eventually used OnApplicationPause(bool) unity callback - it worked for display off\on. Anyway, you may want to make some changes in WaveVR SDK docs https://hub.vive.com/storage/docs/en-us/WaveVR_SystemEvent.html Link to comment Share on other sites More sharing options...
Cotta Posted August 16, 2019 Share Posted August 16, 2019 Glad to hear you've had this issue solved. We've notified the team to arrange adding a note on the related docs. Thank you! 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