private void btnAdd_Click(object sender, EventArgs e) { ControlSetDB cs = new ControlSetDB(); cs.UniqueName = "Default-" + (vJoyManager.Config.AllControlSets.ControlSets.Count + 1); vJoyManager.Config.AllControlSets.ControlSets.Add(cs); RefreshListFromConfig(); lsvControlSets.SelectedItems.Clear(); SelectGivenUniqueName(cs.UniqueName); }
public KeyEmulationEditor(ControlSetDB controlSet) { EditedControlSet = controlSet; InitializeComponent(); lsvKeyRulesSets.Columns.Add("Unique name", 100, HorizontalAlignment.Left); lsvKeyRulesSets.Columns.Add("Key", 80, HorizontalAlignment.Left); lsvKeyRulesSets.Columns.Add("Source", 125, HorizontalAlignment.Left); lsvKeyRulesSets.AllowColumnReorder = true; lsvKeyRulesSets.FullRowSelect = true; lsvKeyRulesSets.View = View.Details; // Create an instance of a ListView column sorter and assign it // to the ListView control. lvwColumnSorter = new ListViewColumnSorter(); lsvKeyRulesSets.ListViewItemSorter = lvwColumnSorter; foreach (var exectype in Enum.GetValues(typeof(KeySourceTypes))) { cmbSourceType1.Items.Add(exectype.ToString()); cmbSourceType2.Items.Add(exectype.ToString()); cmbSourceType3.Items.Add(exectype.ToString()); } cmbSourceType1.SelectedIndex = 0; cmbSourceType2.SelectedIndex = 0; cmbSourceType3.SelectedIndex = 0; foreach (var item in Enum.GetValues(typeof(KeyCodes))) { cmbKeyStroke1.Items.Add(item.ToString()); cmbKeyStroke2.Items.Add(item.ToString()); } cmbKeyStroke1.SelectedIndex = 0; cmbKeyStroke2.SelectedIndex = 0; foreach (var item in Enum.GetValues(typeof(KeyEmulationAPI))) { cmbKeyAPI.Items.Add(item.ToString()); } cmbKeyAPI.SelectedIndex = 0; foreach (var oper in Enum.GetValues(typeof(KeysOperators))) { cmbCombine1.Items.Add(oper.ToString()); cmbCombine2.Items.Add(oper.ToString()); } cmbCombine1.SelectedIndex = 0; cmbCombine2.SelectedIndex = 0; RefreshListFromKeyStrokeDBs(); }
private void _updateAllControlsFromControlSet(ControlSetDB cs) { this.txtControlSetUniqueName.Text = cs.UniqueName; this.txtExecProcessName.Text = cs.ProcessDescriptor.ProcessName; this.txtGameName.Text = cs.ProcessDescriptor.GameName; this.cmbPriorityLevel.SelectedItem = cs.ProcessDescriptor.PriorityLevel.ToString(); this.txtMainWindowTitle.Text = cs.ProcessDescriptor.MainWindowTitle; this.cmbExecType.SelectedItem = cs.ProcessDescriptor.ExecType.ToString(); this.cmbOutputType.SelectedItem = cs.ProcessDescriptor.OutputType.ToString(); }
public OutputsEditor(ControlSetDB controlSet) { EditedControlSet = controlSet; InitializeComponent(); }
public AxisMappingEditor(ControlSetDB controlSet) { ResultRawDB = null; EditedControlSet = controlSet; InitializeComponent(); }
public EffectTuningEditor(ControlSetDB controlSet) { EditedControlSet = controlSet; InitializeComponent(); }
public ButtonsEditor(ControlSetDB controlSet) { EditedControlSet = controlSet; InitializeComponent(); }