Skip to content

Commit a59d93e

Browse files
author
lawwong
committed
Fix Oculus CapSenseGrip returns JoystickX value
1 parent 793f63c commit a59d93e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/HTC.UnityPlugin/VRModule/Modules/UnityXRModule.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ private void UpdateOculusControllerState(IVRModuleDeviceStateRW state, InputDevi
373373

374374
state.SetAxisValue(VRModuleRawAxis.Trigger, trigger);
375375
state.SetAxisValue(VRModuleRawAxis.CapSenseGrip, grip);
376-
state.SetAxisValue(VRModuleRawAxis.JoystickX, primary2DAxis.x);
377-
state.SetAxisValue(VRModuleRawAxis.JoystickY, primary2DAxis.y);
376+
state.SetAxisValue(VRModuleRawAxis.TouchpadX, primary2DAxis.x);
377+
state.SetAxisValue(VRModuleRawAxis.TouchpadY, primary2DAxis.y);
378378

379379
if (KnownActiveInputSubsystem == VRModuleKnownXRInputSubsystem.OpenVR)
380380
{

0 commit comments

Comments
 (0)