Skip to content

Commit 2cbc30e

Browse files
unoctium1lawwong
authored andcommitted
add Index controller support
1 parent 0ff12a1 commit 2cbc30e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ private static void UpdateLeftControllerInput(IVRModuleDeviceState prevState, IV
121121
Update_L_OculusTouch(prevState, currState);
122122
break;
123123
case VRModuleDeviceModel.KnucklesLeft:
124+
case VRModuleDeviceModel.IndexControllerLeft:
124125
Update_L_Knuckles(prevState, currState);
125126
break;
126127
case VRModuleDeviceModel.WMRControllerLeft:
@@ -143,6 +144,7 @@ private static void UpdateRightControllerInput(IVRModuleDeviceState prevState, I
143144
Update_R_OculusTouch(prevState, currState);
144145
break;
145146
case VRModuleDeviceModel.KnucklesRight:
147+
case VRModuleDeviceModel.IndexControllerRight:
146148
Update_R_Knuckles(prevState, currState);
147149
break;
148150
case VRModuleDeviceModel.WMRControllerRight:

0 commit comments

Comments
 (0)