/* * Creates an analog mapper. */ public static AnalogMapper FromData(AnalogInputData data) { // Create the mapper. var mapper = new AnalogMapper(data.Inverted, data.DeadZone, data.MinRange, data.MaxRange); if (data.InitialMin != null && data.InitialMax != null) { mapper.SetBounds(data.InitialMin.Value, data.InitialMax.Value); } // Return the mapper. return(mapper); }