private VirtualController AddTrackedController(string serial, bool isController, bool isL = true) { var ctrl = new VirtualController(vrInputEmulator); var idL = ctrl.AddTrackedController(serial); if (idL < 0) { idL = ctrl.GetDeviceID(); ctrl.GetOpenVRDeviceID(); } else { if (isController) { ctrl.SetControllerProperty(isL); } else { ctrl.SetTrackerProperty(); } } virtualController.Add(ctrl); Controllers.options.Add(new Dropdown.OptionData(serial)); return(ctrl); }