diff --git a/src/Rig.cs b/src/Rig.cs index ef48419..d8e6f85 100644 --- a/src/Rig.cs +++ b/src/Rig.cs @@ -40,13 +40,14 @@ static class Rig { // Hand r_hand = Input.Hand(Handed.Right); Controller r_con = Input.Controller(Handed.Right); - btn_trigger.Step(r_con.trigger > 0.5f); - btn_grip.Step(r_con.grip > 0.5f); bool con_tracked = r_con.trackedPos > TrackState.Lost; Input.HandVisible(Handed.Max, !con_tracked); if (con_tracked) { + btn_trigger.Step(r_con.trigger > 0.5f); + btn_grip.Step(r_con.grip > 0.5f); + Vec2 stick = r_con.stick; Quat stick_rot = Quat.FromAngles(stick.y * -90, 0, stick.x * +90); float stick_sign = r_con.IsStickClicked ? -1 : +1;