// ---------------------
 public void SyncFloat(float val, InputRig.InputSource source, InputRig rig)
 {
     if (this.separateAxes)
     {
         if (val >= 0)
         {
             rig.SetAxis(this.positiveAxis, ref this.positiveAxisId, (this.positiveAxisAsPositive ? val : -val), source);
         }
         else
         {
             rig.SetAxis(this.negativeAxis, ref this.negativeAxisId, (this.negativeAxisAsPositive ? -val : val), source);
         }
     }
     else
     {
         rig.SetAxis(this.singleAxis, ref this.singleAxisId, (this.reverseSingleAxis ? -val : val), source);
     }
 }