Jump to content

ViveInput.GetAxis(handrole, ControllerAxis.CapSenseGrip) returns values form joystick X axis on Quest


Recommended Posts

Not sure what is going on...as I understand it, CapSenseGrip should return the value of the Grip trigger on Quest, is this correct? Instead I am getting values from X axis of joystick.

Unity 2020.3.3.f1

VIU 1.13.1.0

XR Plugin Management 4.0.5

Oculus XR Plugin 1.8.1

I am using the old input system from Unity.

Link to post
Share on other sites

Thanks for the feedback!

Its seems to be a bug, will fix in next update.

 

If need it, you can hot fix yourself by modifying following line

https://github.com/ViveSoftware/ViveInputUtility-Unity/blob/baacdbd76387574b16efc0a5bcc430eebb258e3f/Assets/HTC.UnityPlugin/VRModule/Modules/UnityXRModule.cs#L334

into

state.SetAxisValue(VRModuleRawAxis.TouchpadX, primary2DAxis.x);
state.SetAxisValue(VRModuleRawAxis.TouchpadY, primary2DAxis.y);

 

It seems odd but VRModuleRawAxis.TouchpadX/Y actually means "primary axis X/Y" now. (See how the field treated in ControllerState.cs if you are interested)

Briefly, the weird naming was a legacy design issue.

Link to post
Share on other sites

Please sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...