public void SetCalibration(GameCubeController from) { if (from.CalibrationEmpty) { // don't apply empty calibrations return; } joystick.Calibrate(from.joystick); cStick.Calibrate(from.cStick); L.Calibrate(from.L); R.Calibrate(from.R); }
public void SetCalibration(INintrollerState from) { if (from.CalibrationEmpty) { return; } if (from.GetType() == typeof(Guitar)) { joystick.Calibrate(((Guitar)from).joystick); whammyBar.Calibrate(((Guitar)from).whammyBar); wiimote.SetCalibration(((Guitar)from).wiimote); } else if (from.GetType() == typeof(Wiimote)) { wiimote.SetCalibration(from); } }
public void SetCalibration(INintrollerState from) { if (from.CalibrationEmpty) { // don't apply empty calibrations return; } if (from.GetType() == typeof(ClassicController)) { LJoy.Calibrate(((ClassicController)from).LJoy); RJoy.Calibrate(((ClassicController)from).RJoy); L.Calibrate(((ClassicController)from).L); R.Calibrate(((ClassicController)from).R); } else if (from.GetType() == typeof(Wiimote)) { wiimote.SetCalibration(from); } }