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); }
private void SelectAxisButton(AxisContainer container, int indexInKitList, int buttonType) { if (buttonType == 1) { container.positiveButton = kit.keys[indexInKitList]; } else { container.negativeButton = kit.keys[indexInKitList]; } }