ViveInputUtility-Unity
ViveInputUtility-Unity copied to clipboard
Trigger button is invalid in Unity
SDK: Wave VR 3.2.0 Vive Input Utility 1.12.0 Unity version: 2018.4.9 Vive Focus Plus TestScene:UGUI There is no problem in VR, but it is invalid in Unity
@mimiky You mentioned invalid in Unity means you play on Unity Editor? What error message did you get?
Yes, but there is no error message
Did you use DirectPreview?
Yes, I make sure I use it correctly
@mimiky I manage to reproduce the issue on my side. I will fix it ASAP and provide you with solution, sorry for the inconvenience.
@mimiky Simply update the WaveVRModule.cs to allow the trigger button to work. Line 498, currState.SetAxisValue(VRModuleRawAxis.Trigger, Mathf.Max(triggerAxis.x, triggerPressed ? 1f : 0f));
In Direct Preview mode, WaveVR_Controller's GetAxis API always return 0, so you will not be able to get TouchPad Axis value and also Trigger's Axis value.
thank you!