ViveInputUtility-Unity icon indicating copy to clipboard operation
ViveInputUtility-Unity copied to clipboard

Trigger button is invalid in Unity

Open mimiky opened this issue 4 years ago • 7 comments

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 avatar Sep 22 '20 06:09 mimiky

@mimiky You mentioned invalid in Unity means you play on Unity Editor? What error message did you get?

chengnay avatar Sep 30 '20 02:09 chengnay

Yes, but there is no error message

mimiky avatar Sep 30 '20 02:09 mimiky

Did you use DirectPreview?

chengnay avatar Sep 30 '20 03:09 chengnay

Yes, I make sure I use it correctly

mimiky avatar Sep 30 '20 03:09 mimiky

@mimiky I manage to reproduce the issue on my side. I will fix it ASAP and provide you with solution, sorry for the inconvenience.

chengnay avatar Sep 30 '20 06:09 chengnay

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

chengnay avatar Oct 05 '20 08:10 chengnay

thank you!

mimiky avatar Oct 05 '20 09:10 mimiky