public void SetJoyCons(JoyCon joyCon1, JoyCon joyCon2) { switch (joyCon1.Type) { case JoyCon.Side.Left: Left = joyCon1; Right = joyCon2; break; case JoyCon.Side.Right: Left = joyCon2; Right = joyCon1; break; default: throw new ArgumentOutOfRangeException(); } }
public DualJoyCon(JoyCon joyCon1, JoyCon joyCon2) { SetJoyCons(joyCon1, joyCon2); }
public DualJoyCon() { Left = JoyCon.Null; Right = JoyCon.Null; }