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...
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...
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