Input config - set Accept & Cancel properties of the winform to none since they were interfering with mapping keys
This commit is contained in:
parent
f9d7a15ee5
commit
7d093138ca
|
@ -28,170 +28,168 @@
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InputConfig));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InputConfig));
|
||||||
this.OK = new System.Windows.Forms.Button();
|
this.OK = new System.Windows.Forms.Button();
|
||||||
this.Cancel = new System.Windows.Forms.Button();
|
this.Cancel = new System.Windows.Forms.Button();
|
||||||
this.ButtonsGroupBox = new System.Windows.Forms.GroupBox();
|
this.ButtonsGroupBox = new System.Windows.Forms.GroupBox();
|
||||||
this.ControllerImage = new System.Windows.Forms.PictureBox();
|
this.ControllerImage = new System.Windows.Forms.PictureBox();
|
||||||
this.ControllerSelectGroupBox = new System.Windows.Forms.GroupBox();
|
this.ControllerSelectGroupBox = new System.Windows.Forms.GroupBox();
|
||||||
this.ControllerEnabledCheckbox = new System.Windows.Forms.CheckBox();
|
this.ControllerEnabledCheckbox = new System.Windows.Forms.CheckBox();
|
||||||
this.ControllComboBox = new System.Windows.Forms.ComboBox();
|
this.ControllComboBox = new System.Windows.Forms.ComboBox();
|
||||||
this.AllowLR = new System.Windows.Forms.CheckBox();
|
this.AllowLR = new System.Windows.Forms.CheckBox();
|
||||||
this.SystemGroupBox = new System.Windows.Forms.GroupBox();
|
this.SystemGroupBox = new System.Windows.Forms.GroupBox();
|
||||||
this.SystemComboBox = new System.Windows.Forms.ComboBox();
|
this.SystemComboBox = new System.Windows.Forms.ComboBox();
|
||||||
this.testInputWidget = new InputWidget();
|
this.testInputWidget = new BizHawk.MultiClient.InputWidget();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.ControllerImage)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.ControllerImage)).BeginInit();
|
||||||
this.ControllerSelectGroupBox.SuspendLayout();
|
this.ControllerSelectGroupBox.SuspendLayout();
|
||||||
this.SystemGroupBox.SuspendLayout();
|
this.SystemGroupBox.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// OK
|
// OK
|
||||||
//
|
//
|
||||||
this.OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.OK.Location = new System.Drawing.Point(260, 284);
|
this.OK.Location = new System.Drawing.Point(260, 284);
|
||||||
this.OK.Name = "OK";
|
this.OK.Name = "OK";
|
||||||
this.OK.Size = new System.Drawing.Size(75, 23);
|
this.OK.Size = new System.Drawing.Size(75, 23);
|
||||||
this.OK.TabIndex = 0;
|
this.OK.TabIndex = 0;
|
||||||
this.OK.Text = "&Ok";
|
this.OK.Text = "&Ok";
|
||||||
this.OK.UseVisualStyleBackColor = true;
|
this.OK.UseVisualStyleBackColor = true;
|
||||||
this.OK.Click += new System.EventHandler(this.OK_Click);
|
this.OK.Click += new System.EventHandler(this.OK_Click);
|
||||||
//
|
//
|
||||||
// Cancel
|
// Cancel
|
||||||
//
|
//
|
||||||
this.Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
this.Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||||
this.Cancel.Location = new System.Drawing.Point(350, 284);
|
this.Cancel.Location = new System.Drawing.Point(350, 284);
|
||||||
this.Cancel.Name = "Cancel";
|
this.Cancel.Name = "Cancel";
|
||||||
this.Cancel.Size = new System.Drawing.Size(75, 23);
|
this.Cancel.Size = new System.Drawing.Size(75, 23);
|
||||||
this.Cancel.TabIndex = 1;
|
this.Cancel.TabIndex = 1;
|
||||||
this.Cancel.Text = "&Cancel";
|
this.Cancel.Text = "&Cancel";
|
||||||
this.Cancel.UseVisualStyleBackColor = true;
|
this.Cancel.UseVisualStyleBackColor = true;
|
||||||
this.Cancel.Click += new System.EventHandler(this.Cancel_Click);
|
this.Cancel.Click += new System.EventHandler(this.Cancel_Click);
|
||||||
//
|
//
|
||||||
// ButtonsGroupBox
|
// ButtonsGroupBox
|
||||||
//
|
//
|
||||||
this.ButtonsGroupBox.Location = new System.Drawing.Point(12, 68);
|
this.ButtonsGroupBox.Location = new System.Drawing.Point(12, 68);
|
||||||
this.ButtonsGroupBox.Name = "ButtonsGroupBox";
|
this.ButtonsGroupBox.Name = "ButtonsGroupBox";
|
||||||
this.ButtonsGroupBox.Size = new System.Drawing.Size(240, 239);
|
this.ButtonsGroupBox.Size = new System.Drawing.Size(240, 239);
|
||||||
this.ButtonsGroupBox.TabIndex = 2;
|
this.ButtonsGroupBox.TabIndex = 2;
|
||||||
this.ButtonsGroupBox.TabStop = false;
|
this.ButtonsGroupBox.TabStop = false;
|
||||||
this.ButtonsGroupBox.Text = "Buttons";
|
this.ButtonsGroupBox.Text = "Buttons";
|
||||||
//
|
//
|
||||||
// ControllerImage
|
// ControllerImage
|
||||||
//
|
//
|
||||||
this.ControllerImage.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
this.ControllerImage.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||||
this.ControllerImage.Location = new System.Drawing.Point(258, 73);
|
this.ControllerImage.Location = new System.Drawing.Point(258, 73);
|
||||||
this.ControllerImage.Name = "ControllerImage";
|
this.ControllerImage.Name = "ControllerImage";
|
||||||
this.ControllerImage.Size = new System.Drawing.Size(165, 156);
|
this.ControllerImage.Size = new System.Drawing.Size(165, 156);
|
||||||
this.ControllerImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
this.ControllerImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
||||||
this.ControllerImage.TabIndex = 3;
|
this.ControllerImage.TabIndex = 3;
|
||||||
this.ControllerImage.TabStop = false;
|
this.ControllerImage.TabStop = false;
|
||||||
//
|
//
|
||||||
// ControllerSelectGroupBox
|
// ControllerSelectGroupBox
|
||||||
//
|
//
|
||||||
this.ControllerSelectGroupBox.Controls.Add(this.ControllerEnabledCheckbox);
|
this.ControllerSelectGroupBox.Controls.Add(this.ControllerEnabledCheckbox);
|
||||||
this.ControllerSelectGroupBox.Controls.Add(this.ControllComboBox);
|
this.ControllerSelectGroupBox.Controls.Add(this.ControllComboBox);
|
||||||
this.ControllerSelectGroupBox.Location = new System.Drawing.Point(13, 12);
|
this.ControllerSelectGroupBox.Location = new System.Drawing.Point(13, 12);
|
||||||
this.ControllerSelectGroupBox.Name = "ControllerSelectGroupBox";
|
this.ControllerSelectGroupBox.Name = "ControllerSelectGroupBox";
|
||||||
this.ControllerSelectGroupBox.Size = new System.Drawing.Size(239, 50);
|
this.ControllerSelectGroupBox.Size = new System.Drawing.Size(239, 50);
|
||||||
this.ControllerSelectGroupBox.TabIndex = 4;
|
this.ControllerSelectGroupBox.TabIndex = 4;
|
||||||
this.ControllerSelectGroupBox.TabStop = false;
|
this.ControllerSelectGroupBox.TabStop = false;
|
||||||
this.ControllerSelectGroupBox.Text = "Controller";
|
this.ControllerSelectGroupBox.Text = "Controller";
|
||||||
//
|
//
|
||||||
// ControllerEnabledCheckbox
|
// ControllerEnabledCheckbox
|
||||||
//
|
//
|
||||||
this.ControllerEnabledCheckbox.AutoSize = true;
|
this.ControllerEnabledCheckbox.AutoSize = true;
|
||||||
this.ControllerEnabledCheckbox.Checked = true;
|
this.ControllerEnabledCheckbox.Checked = true;
|
||||||
this.ControllerEnabledCheckbox.CheckState = System.Windows.Forms.CheckState.Checked;
|
this.ControllerEnabledCheckbox.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
this.ControllerEnabledCheckbox.Location = new System.Drawing.Point(143, 23);
|
this.ControllerEnabledCheckbox.Location = new System.Drawing.Point(143, 23);
|
||||||
this.ControllerEnabledCheckbox.Name = "ControllerEnabledCheckbox";
|
this.ControllerEnabledCheckbox.Name = "ControllerEnabledCheckbox";
|
||||||
this.ControllerEnabledCheckbox.Size = new System.Drawing.Size(65, 17);
|
this.ControllerEnabledCheckbox.Size = new System.Drawing.Size(65, 17);
|
||||||
this.ControllerEnabledCheckbox.TabIndex = 1;
|
this.ControllerEnabledCheckbox.TabIndex = 1;
|
||||||
this.ControllerEnabledCheckbox.Text = "Enabled";
|
this.ControllerEnabledCheckbox.Text = "Enabled";
|
||||||
this.ControllerEnabledCheckbox.UseVisualStyleBackColor = true;
|
this.ControllerEnabledCheckbox.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// ControllComboBox
|
// ControllComboBox
|
||||||
//
|
//
|
||||||
this.ControllComboBox.FormattingEnabled = true;
|
|
||||||
this.ControllComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.ControllComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.ControllComboBox.Location = new System.Drawing.Point(6, 19);
|
this.ControllComboBox.FormattingEnabled = true;
|
||||||
this.ControllComboBox.Name = "ControllComboBox";
|
this.ControllComboBox.Location = new System.Drawing.Point(6, 19);
|
||||||
this.ControllComboBox.Size = new System.Drawing.Size(110, 21);
|
this.ControllComboBox.Name = "ControllComboBox";
|
||||||
this.ControllComboBox.SelectedIndexChanged += new System.EventHandler(ControllComboBox_SelectedIndexChanged);
|
this.ControllComboBox.Size = new System.Drawing.Size(110, 21);
|
||||||
this.ControllComboBox.TabIndex = 0;
|
this.ControllComboBox.TabIndex = 0;
|
||||||
//
|
this.ControllComboBox.SelectedIndexChanged += new System.EventHandler(this.ControllComboBox_SelectedIndexChanged);
|
||||||
// AllowLR
|
//
|
||||||
//
|
// AllowLR
|
||||||
this.AllowLR.AutoSize = true;
|
//
|
||||||
this.AllowLR.Location = new System.Drawing.Point(260, 260);
|
this.AllowLR.AutoSize = true;
|
||||||
this.AllowLR.Name = "AllowLR";
|
this.AllowLR.Location = new System.Drawing.Point(260, 260);
|
||||||
this.AllowLR.Size = new System.Drawing.Size(156, 17);
|
this.AllowLR.Name = "AllowLR";
|
||||||
this.AllowLR.TabIndex = 5;
|
this.AllowLR.Size = new System.Drawing.Size(156, 17);
|
||||||
this.AllowLR.Text = "Allow Left+Right/Up+Down";
|
this.AllowLR.TabIndex = 5;
|
||||||
this.AllowLR.UseVisualStyleBackColor = true;
|
this.AllowLR.Text = "Allow Left+Right/Up+Down";
|
||||||
//
|
this.AllowLR.UseVisualStyleBackColor = true;
|
||||||
// SystemGroupBox
|
//
|
||||||
//
|
// SystemGroupBox
|
||||||
this.SystemGroupBox.Controls.Add(this.SystemComboBox);
|
//
|
||||||
this.SystemGroupBox.Location = new System.Drawing.Point(258, 12);
|
this.SystemGroupBox.Controls.Add(this.SystemComboBox);
|
||||||
this.SystemGroupBox.Name = "SystemGroupBox";
|
this.SystemGroupBox.Location = new System.Drawing.Point(258, 12);
|
||||||
this.SystemGroupBox.Size = new System.Drawing.Size(158, 50);
|
this.SystemGroupBox.Name = "SystemGroupBox";
|
||||||
this.SystemGroupBox.TabIndex = 6;
|
this.SystemGroupBox.Size = new System.Drawing.Size(158, 50);
|
||||||
this.SystemGroupBox.TabStop = false;
|
this.SystemGroupBox.TabIndex = 6;
|
||||||
this.SystemGroupBox.Text = "System";
|
this.SystemGroupBox.TabStop = false;
|
||||||
//
|
this.SystemGroupBox.Text = "System";
|
||||||
// SystemComboBox
|
//
|
||||||
//
|
// SystemComboBox
|
||||||
this.SystemComboBox.FormattingEnabled = true;
|
//
|
||||||
this.SystemComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.SystemComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.SystemComboBox.Items.AddRange(new object[] {
|
this.SystemComboBox.FormattingEnabled = true;
|
||||||
|
this.SystemComboBox.Items.AddRange(new object[] {
|
||||||
"SMS / GG / SG-1000",
|
"SMS / GG / SG-1000",
|
||||||
"PC Engine / SGX",
|
"PC Engine / SGX",
|
||||||
"Gameboy",
|
"Gameboy",
|
||||||
"Sega Genesis",
|
"Sega Genesis",
|
||||||
"TI-83",
|
"TI-83",
|
||||||
"NES"});
|
"NES"});
|
||||||
this.SystemComboBox.Location = new System.Drawing.Point(6, 19);
|
this.SystemComboBox.Location = new System.Drawing.Point(6, 19);
|
||||||
this.SystemComboBox.Name = "SystemComboBox";
|
this.SystemComboBox.Name = "SystemComboBox";
|
||||||
this.SystemComboBox.Size = new System.Drawing.Size(146, 21);
|
this.SystemComboBox.Size = new System.Drawing.Size(146, 21);
|
||||||
this.SystemComboBox.TabIndex = 2;
|
this.SystemComboBox.TabIndex = 2;
|
||||||
this.SystemComboBox.SelectedIndexChanged += new System.EventHandler(this.SystemComboBox_SelectedIndexChanged);
|
this.SystemComboBox.SelectedIndexChanged += new System.EventHandler(this.SystemComboBox_SelectedIndexChanged);
|
||||||
//
|
//
|
||||||
// testInputWidget
|
// testInputWidget
|
||||||
//
|
//
|
||||||
this.testInputWidget.Location = new System.Drawing.Point(286, 236);
|
this.testInputWidget.Location = new System.Drawing.Point(286, 236);
|
||||||
this.testInputWidget.Name = "testInputWidget";
|
this.testInputWidget.Name = "testInputWidget";
|
||||||
this.testInputWidget.Size = new System.Drawing.Size(100, 20);
|
this.testInputWidget.Size = new System.Drawing.Size(100, 20);
|
||||||
this.testInputWidget.TabIndex = 7;
|
this.testInputWidget.TabIndex = 7;
|
||||||
//
|
//
|
||||||
// InputConfig
|
// InputConfig
|
||||||
//
|
//
|
||||||
this.AcceptButton = this.OK;
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.ClientSize = new System.Drawing.Size(439, 319);
|
||||||
this.CancelButton = this.Cancel;
|
this.Controls.Add(this.testInputWidget);
|
||||||
this.ClientSize = new System.Drawing.Size(439, 319);
|
this.Controls.Add(this.SystemGroupBox);
|
||||||
this.Controls.Add(this.testInputWidget);
|
this.Controls.Add(this.AllowLR);
|
||||||
this.Controls.Add(this.SystemGroupBox);
|
this.Controls.Add(this.ControllerSelectGroupBox);
|
||||||
this.Controls.Add(this.AllowLR);
|
this.Controls.Add(this.ControllerImage);
|
||||||
this.Controls.Add(this.ControllerSelectGroupBox);
|
this.Controls.Add(this.ButtonsGroupBox);
|
||||||
this.Controls.Add(this.ControllerImage);
|
this.Controls.Add(this.Cancel);
|
||||||
this.Controls.Add(this.ButtonsGroupBox);
|
this.Controls.Add(this.OK);
|
||||||
this.Controls.Add(this.Cancel);
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.Controls.Add(this.OK);
|
this.MaximizeBox = false;
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.MinimizeBox = false;
|
||||||
this.MaximizeBox = false;
|
this.Name = "InputConfig";
|
||||||
this.MinimizeBox = false;
|
this.ShowIcon = false;
|
||||||
this.Name = "InputConfig";
|
this.Text = "Configure Controllers";
|
||||||
this.ShowIcon = false;
|
this.Load += new System.EventHandler(this.InputConfig_Load);
|
||||||
this.Text = "Configure Controllers";
|
((System.ComponentModel.ISupportInitialize)(this.ControllerImage)).EndInit();
|
||||||
this.Load += new System.EventHandler(this.InputConfig_Load);
|
this.ControllerSelectGroupBox.ResumeLayout(false);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.ControllerImage)).EndInit();
|
this.ControllerSelectGroupBox.PerformLayout();
|
||||||
this.ControllerSelectGroupBox.ResumeLayout(false);
|
this.SystemGroupBox.ResumeLayout(false);
|
||||||
this.ControllerSelectGroupBox.PerformLayout();
|
this.ResumeLayout(false);
|
||||||
this.SystemGroupBox.ResumeLayout(false);
|
this.PerformLayout();
|
||||||
this.ResumeLayout(false);
|
|
||||||
this.PerformLayout();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue