Skip to content

Commit 12a633f

Browse files
author
ChengNan Yang
committed
Fix device input did not reset issue
1 parent 327c0a8 commit 12a633f

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

Assets/HTC.UnityPlugin/VRModule/Submodules/WaveHandTrackingSubmodule.cs

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,9 @@ protected override void OnUpdateDeviceConnectionAndPoses()
105105

106106
currState.isConnected = true;
107107

108-
if (trackingActivator.isLeftValid)
109-
{
110-
trackingActivator.UpdateJoints(currState, true);
111-
trackingActivator.UpdateDeviceInput(currState, true);
112-
}
113-
114-
if (gestureActivator.isLeftValid)
115-
{
116-
gestureActivator.UpdateDeviceInput(currState, true);
117-
}
108+
trackingActivator.UpdateJoints(currState, true);
109+
trackingActivator.UpdateDeviceInput(currState, true);
110+
gestureActivator.UpdateDeviceInput(currState, true);
118111
}
119112
else
120113
{
@@ -147,16 +140,9 @@ protected override void OnUpdateDeviceConnectionAndPoses()
147140

148141
currState.isConnected = true;
149142

150-
if (trackingActivator.isRightValid)
151-
{
152-
trackingActivator.UpdateJoints(currState, false);
153-
trackingActivator.UpdateDeviceInput(currState, false);
154-
}
155-
156-
if (gestureActivator.isRightValid)
157-
{
158-
gestureActivator.UpdateDeviceInput(currState, false);
159-
}
143+
trackingActivator.UpdateJoints(currState, false);
144+
trackingActivator.UpdateDeviceInput(currState, false);
145+
gestureActivator.UpdateDeviceInput(currState, false);
160146
}
161147
else
162148
{

0 commit comments

Comments
 (0)