Skip to content

Commit 8be40a1

Browse files
committed
remove support for PoseControl trigger - since PoseControl is compiled in conditionally
1 parent 20c72a9 commit 8be40a1

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Packages/com.unity.inputsystem/Tests/TestFixture/InputTestFixture.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -805,15 +805,6 @@ public void Trigger(InputAction action)
805805
return;
806806
}
807807

808-
if (control is PoseControl poseControl)
809-
{
810-
var pose = poseControl.ReadValue();
811-
pose.position += minorChange * Vector3.one;
812-
Set(poseControl, pose);
813-
814-
return;
815-
}
816-
817808
if (control is BoneControl boneControl)
818809
{
819810
var bone = boneControl.ReadValue();
@@ -833,6 +824,9 @@ public void Trigger(InputAction action)
833824
}
834825
}
835826

827+
// Initially I wanted to implement PoseControl too, but it's got a very complicated ifdef that enables it.
828+
// Didn't want to carry that #ifdef here. Let's see how many people really need to trigger PoseControl.
829+
836830
// If it's not a control that we know how to trigger - it's not implemented yet
837831
throw new NotImplementedException();
838832
}

0 commit comments

Comments
 (0)