Beispiel #1
0
    private void AxisBindCopy(AxisBindings from, AxisBindings to)
    {
        to.Clear();

        foreach (string key in from.Keys)
        {
            to.Add(key, from[key]);
        }
    }
Beispiel #2
0
 // 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();
 }
Beispiel #3
0
    // 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);
    }