grip btn
This commit is contained in:
parent
b4d0551cb5
commit
6fc7e38851
1 changed files with 3 additions and 1 deletions
|
@ -7,6 +7,7 @@ static class Rig
|
||||||
public static Pose head = Pose.Identity;
|
public static Pose head = Pose.Identity;
|
||||||
|
|
||||||
public static DeltaBool btn_trigger = new(false);
|
public static DeltaBool btn_trigger = new(false);
|
||||||
|
public static DeltaBool btn_grip = new(false);
|
||||||
|
|
||||||
public static Vec3 fullstick = Vec3.Up;
|
public static Vec3 fullstick = Vec3.Up;
|
||||||
public static Pose r_con_stick = Pose.Identity;
|
public static Pose r_con_stick = Pose.Identity;
|
||||||
|
@ -37,9 +38,10 @@ static class Rig
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Hand r_hand = Input.Hand(Handed.Right);
|
// Hand r_hand = Input.Hand(Handed.Right);
|
||||||
Controller r_con = Input.Controller(Handed.Right);
|
Controller r_con = Input.Controller(Handed.Right);
|
||||||
btn_trigger.Step(r_con.trigger > 0.5f);
|
btn_trigger.Step(r_con.trigger > 0.5f);
|
||||||
|
btn_grip.Step(r_con.grip > 0.5f);
|
||||||
|
|
||||||
bool con_tracked = r_con.trackedPos > TrackState.Lost;
|
bool con_tracked = r_con.trackedPos > TrackState.Lost;
|
||||||
Input.HandVisible(Handed.Max, !con_tracked);
|
Input.HandVisible(Handed.Max, !con_tracked);
|
||||||
|
|
Loading…
Add table
Reference in a new issue