Esempio n. 1
0
 public AxisContainer(AxisContainer blueprint)
 {
     positiveButtonKeyIndex = blueprint.positiveButtonKeyIndex;
     negativeButtonKeyIndex = blueprint.negativeButtonKeyIndex;
     name           = blueprint.name;
     positiveButton = new KeyCodeContainer(blueprint.positiveButton);
     negativeButton = new KeyCodeContainer(blueprint.negativeButton);
     SetSensivity(blueprint.sensivity);
 }
Esempio n. 2
0
 private void SelectAxisButton(AxisContainer container, int indexInKitList, int buttonType)
 {
     if (buttonType == 1)
     {
         container.positiveButton = kit.keys[indexInKitList];
     }
     else
     {
         container.negativeButton = kit.keys[indexInKitList];
     }
 }