private void AxisBindCopy(AxisBindings from, AxisBindings to) { to.Clear(); foreach (string key in from.Keys) { to.Add(key, from[key]); } }
// Use this for initialization public InputData() { Keyboard = new KeyBindings(); J1Buttons = new ButtonBindings(); J1Axis = new AxisBindings(); J2Buttons = new ButtonBindings(); J2Axis = new AxisBindings(); J3Buttons = new ButtonBindings(); J3Axis = new AxisBindings(); J4Buttons = new ButtonBindings(); J4Axis = new AxisBindings(); }
// Use this for initialization void Start() { Keyboard = new KeyBindings(); J1Buttons = new ButtonBindings(); J1Axis = new AxisBindings(); J2Buttons = new ButtonBindings(); J2Axis = new AxisBindings(); J3Buttons = new ButtonBindings(); J3Axis = new AxisBindings(); J4Buttons = new ButtonBindings(); J4Axis = new AxisBindings(); LoadData(filename); }