1099 Posted January 4 Share Posted January 4 (edited) Do I need to use this specific method to access menu button for the VIU simulator? ViveInput.AddListenerEx(HandRole.RightHand, ControllerButton.Menu, ButtonEventType.Down, menuButton) Or, can I use different method such as Unity's TryGetFeatureValue? Unity - Manual: Unity XR Input (unity3d.com) Edited January 4 by 1099 Rewrite title Link to comment Share on other sites More sharing options...
chengnay Posted January 4 Share Posted January 4 Hi @1099, Using VIU, you can use below method to get button input. ViveInput.GetPress(HandRole.RightHand, ControllerButton.Menu) or ViveInput.GetPressEx(ControllerRole.RightHand, ControllerButton.Menu) Link to comment Share on other sites More sharing options...
1099 Posted January 4 Author Share Posted January 4 Thank you @chengnay! Is that the only those I could use? Can I use a method from Unity as I mentioned above? Link to comment Share on other sites More sharing options...
chengnay Posted January 5 Share Posted January 5 Hi @1099, Could you explain more on what actually you need? You can also use the method from Unity, just it is different when using VIU. Link to comment Share on other sites More sharing options...
1099 Posted January 5 Author Share Posted January 5 @chengnay I want to access Vive Menu button through the Simulator using TryGetFeatureValue method instead of ViveInput.GetPress or ViveInput.GetPressEx. The ViveInput will only works for Vive controller but the I can implement other devices if I use TryGetFeatureValue. Link to comment Share on other sites More sharing options...
chengnay Posted January 6 Share Posted January 6 Hi @1099, ViveInput.GetPress or ViveInput.GetPressEx can work for all supported controller types. Why you said it only works for Vive controller? Is there any issue? Please let us know. 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