Skip to content

Commit 1fa42f7

Browse files
author
ChengNan Yang
committed
Add grip button axis support using Unity 2018
* App built with Unity 2018 and run on Focus 3 * Using Wave SDK 3.2 and patch files
1 parent 8258b57 commit 1fa42f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,10 @@ private void UpdateDeviceInput(uint deviceIndex, WaveVR_Controller.Device device
625625

626626
var triggerAxis = deviceInput.GetAxis(WVR_InputId.WVR_InputId_Alias1_Trigger);
627627
var touchAxis = deviceInput.GetAxis(WVR_InputId.WVR_InputId_Alias1_Touchpad);
628+
var gripAxis = deviceInput.GetAxis(WVR_InputId.WVR_InputId_Alias1_Grip);
629+
628630
currState.SetAxisValue(VRModuleRawAxis.Trigger, triggerAxis.x);
631+
currState.SetAxisValue(VRModuleRawAxis.CapSenseGrip, gripAxis.x);
629632
currState.SetAxisValue(VRModuleRawAxis.TouchpadX, touchAxis.x);
630633
currState.SetAxisValue(VRModuleRawAxis.TouchpadY, touchAxis.y);
631634
}

0 commit comments

Comments
 (0)