1099 Posted January 4, 2023 Posted January 4, 2023 (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, 2023 by 1099 Rewrite title
VIVE_chengnay Posted January 4, 2023 Posted January 4, 2023 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)
1099 Posted January 4, 2023 Author Posted January 4, 2023 Thank you @chengnay! Is that the only those I could use? Can I use a method from Unity as I mentioned above?
VIVE_chengnay Posted January 5, 2023 Posted January 5, 2023 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.
1099 Posted January 5, 2023 Author Posted January 5, 2023 @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.
VIVE_chengnay Posted January 6, 2023 Posted January 6, 2023 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.
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