// -------------------- public AxisElem AddAxis() { AxisElem a = new AxisElem(); this.axisList.Add(a); return(a); }
// ----------------- public void Sync(bool state, InputRig rig, bool skipIfTargetIsMuted = false) { if ((state == false) || (rig == null) || !this.enabled) { return; } for (int i = 0; i < this.keyList.Count; ++i) { rig.SetKeyCode(this.keyList[i]); } for (int i = 0; i < this.axisList.Count; ++i) { AxisElem a = this.axisList[i]; a.ApplyToRig(rig, skipIfTargetIsMuted); } }
// ----------------- public void CopyFrom(AxisElem b) { this.axisName = b.axisName; this.axisPositiveSide = b.axisPositiveSide; }