Greg_ Posted January 27, 2023 Share Posted January 27, 2023 I need to detect when user unmount headset from head to make actions in my game. I've tried: XRDevice.isPresent - always true Wave.OpenXR.InputDeviceControl.IsTracked(Wave.OpenXR.InputDeviceControl.ControlDevice.Head) - always true Wave.OpenXR.InputDeviceControl.IsConnected(Wave.OpenXR.InputDeviceControl.ControlDevice.Head) - always true Thank you. Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted January 30, 2023 Share Posted January 30, 2023 Hi @Greg_, Could you try this? Let me know if you still have issue, thanks! Link to comment Share on other sites More sharing options...
Greg_ Posted February 2, 2023 Author Share Posted February 2, 2023 Your solution works correctly. Thank you. Link to comment Share on other sites More sharing options...
UnendlicheMoeglichkeiten Posted January 2 Share Posted January 2 Hi @VIVE_chengnay, is there a solution for UnrealEngine? Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted January 2 Share Posted January 2 Hi @UnendlicheMoeglichkeiten, Could you try this? Link to comment Share on other sites More sharing options...
UnendlicheMoeglichkeiten Posted January 17 Share Posted January 17 Thanks for the reply. I have now tested this, but I do not receive the notification 1010 or 1011, but I do receive other notifications that have nothing to do with pausing or stopping the application. Do I have to set something special to get these specific notifications? Link to comment Share on other sites More sharing options...
UnendlicheMoeglichkeiten Posted January 18 Share Posted January 18 Hi @VIVE_chengnay - We really tried a lot again: Is there another method to get the data? Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted January 18 Share Posted January 18 Hi @UnendlicheMoeglichkeiten, We are testing on this, get back to you ASAP when we have the result. Sorry for the inconvenience. UPDATE: Just to confirm we are talking about the same event. For 1010, it is event that you take off your HMD and not application paused. For 1011, it is event that you put your HMD on and not application resumed. But you previously mentioned that event you got is not related to pausing or stopping the application. What event did you get? Link to comment Share on other sites More sharing options...
UnendlicheMoeglichkeiten Posted January 18 Share Posted January 18 Dear @VIVE_chengnay - thanks for the fast reply. We want to read out exactly these two events. So far, we don't get any events as soon as we put on or take off the headset. But we do get the 1000 event, for example, when we close the application. Inside our WaveVR Pawn we add a the WaveVREventCommon and then listen to the OnAllEvent BP. I attached a screenshot. Link to comment Share on other sites More sharing options...
Johnson_Wu Posted January 19 Share Posted January 19 Hi @UnendlicheMoeglichkeiten, As I know, the two events WVR_EventType_RenderingToBeResumed and WVR_EventType_RenderingToBePaused had already not been sent anymore because the rendering behavior was changing(the rendering process will not been Resumed or Paused). That is to say, the solution in Unity above does not work now,too. The alternative way for Unity is to listen ProximitySensor which is implement by Andoird API directly. But Unreal Engine does not have the same feature(API) like that, so we need to listen the event by Android API and JNI. The solution is ongoing, I will share the code snippet by next Monday. 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