Ally M1/M2 bindings

This commit is contained in:
Serge
2024-01-16 00:50:13 +01:00
parent 4e1aa01fae
commit 7bfd80b20f
8 changed files with 381 additions and 39 deletions

129
app/Handheld.Designer.cs generated
View File

@@ -63,6 +63,14 @@
panelSDeadzone = new Panel();
pictureSDeadzone = new PictureBox();
labelSDeadzone = new Label();
panelBindings = new Panel();
labelM2 = new Label();
comboM2 = new UI.RComboBox();
labelM1 = new Label();
comboM1 = new UI.RComboBox();
panel1 = new Panel();
pictureBindings = new PictureBox();
labelBindings = new Label();
panelController.SuspendLayout();
panelVibra.SuspendLayout();
((System.ComponentModel.ISupportInitialize)trackVibra).BeginInit();
@@ -84,6 +92,9 @@
((System.ComponentModel.ISupportInitialize)trackLSMin).BeginInit();
panelSDeadzone.SuspendLayout();
((System.ComponentModel.ISupportInitialize)pictureSDeadzone).BeginInit();
panelBindings.SuspendLayout();
panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)pictureBindings).BeginInit();
SuspendLayout();
//
// panelController
@@ -104,7 +115,7 @@
panelController.MinimumSize = new Size(560, 800);
panelController.Name = "panelController";
panelController.Padding = new Padding(0, 0, 0, 18);
panelController.Size = new Size(560, 920);
panelController.Size = new Size(560, 912);
panelController.TabIndex = 45;
//
// buttonReset
@@ -115,11 +126,11 @@
buttonReset.BorderColor = Color.Transparent;
buttonReset.BorderRadius = 2;
buttonReset.FlatStyle = FlatStyle.Flat;
buttonReset.Location = new Point(20, 850);
buttonReset.Location = new Point(20, 842);
buttonReset.Margin = new Padding(4, 2, 4, 2);
buttonReset.Name = "buttonReset";
buttonReset.Secondary = true;
buttonReset.Size = new Size(224, 50);
buttonReset.Size = new Size(239, 50);
buttonReset.TabIndex = 54;
buttonReset.Text = "Reset";
buttonReset.UseVisualStyleBackColor = false;
@@ -543,11 +554,108 @@
labelSDeadzone.TabIndex = 40;
labelSDeadzone.Text = "Stick Deadzones";
//
// panelBindings
//
panelBindings.Controls.Add(labelM2);
panelBindings.Controls.Add(comboM2);
panelBindings.Controls.Add(labelM1);
panelBindings.Controls.Add(comboM1);
panelBindings.Controls.Add(panel1);
panelBindings.Dock = DockStyle.Left;
panelBindings.Location = new Point(570, 10);
panelBindings.MinimumSize = new Size(500, 0);
panelBindings.Name = "panelBindings";
panelBindings.Size = new Size(500, 912);
panelBindings.TabIndex = 46;
//
// labelM2
//
labelM2.AutoSize = true;
labelM2.Location = new Point(19, 146);
labelM2.Margin = new Padding(4, 0, 4, 0);
labelM2.Name = "labelM2";
labelM2.Size = new Size(49, 32);
labelM2.TabIndex = 48;
labelM2.Text = "M2";
//
// comboM2
//
comboM2.BorderColor = Color.White;
comboM2.ButtonColor = Color.FromArgb(255, 255, 255);
comboM2.FormattingEnabled = true;
comboM2.Items.AddRange(new object[] { Properties.Strings.Default, Properties.Strings.VolumeMute, Properties.Strings.PlayPause, Properties.Strings.PrintScreen, Properties.Strings.ToggleAura, Properties.Strings.Custom });
comboM2.Location = new Point(82, 144);
comboM2.Margin = new Padding(4, 3, 4, 3);
comboM2.Name = "comboM2";
comboM2.Size = new Size(374, 40);
comboM2.TabIndex = 47;
//
// labelM1
//
labelM1.AutoSize = true;
labelM1.Location = new Point(19, 87);
labelM1.Margin = new Padding(4, 0, 4, 0);
labelM1.Name = "labelM1";
labelM1.Size = new Size(49, 32);
labelM1.TabIndex = 46;
labelM1.Text = "M1";
//
// comboM1
//
comboM1.BorderColor = Color.White;
comboM1.ButtonColor = Color.FromArgb(255, 255, 255);
comboM1.FormattingEnabled = true;
comboM1.Items.AddRange(new object[] { Properties.Strings.Default, Properties.Strings.VolumeMute, Properties.Strings.PlayPause, Properties.Strings.PrintScreen, Properties.Strings.ToggleAura, Properties.Strings.Custom });
comboM1.Location = new Point(82, 85);
comboM1.Margin = new Padding(4, 3, 4, 3);
comboM1.Name = "comboM1";
comboM1.Size = new Size(374, 40);
comboM1.TabIndex = 45;
//
// panel1
//
panel1.AutoSize = true;
panel1.AutoSizeMode = AutoSizeMode.GrowAndShrink;
panel1.Controls.Add(pictureBindings);
panel1.Controls.Add(labelBindings);
panel1.Dock = DockStyle.Top;
panel1.Location = new Point(0, 0);
panel1.Margin = new Padding(4);
panel1.Name = "panel1";
panel1.Size = new Size(500, 60);
panel1.TabIndex = 44;
//
// pictureBindings
//
pictureBindings.BackgroundImage = Properties.Resources.icons8_next_32;
pictureBindings.BackgroundImageLayout = ImageLayout.Zoom;
pictureBindings.ErrorImage = null;
pictureBindings.InitialImage = null;
pictureBindings.Location = new Point(10, 18);
pictureBindings.Margin = new Padding(4, 2, 4, 10);
pictureBindings.Name = "pictureBindings";
pictureBindings.Size = new Size(32, 32);
pictureBindings.TabIndex = 41;
pictureBindings.TabStop = false;
//
// labelBindings
//
labelBindings.AutoSize = true;
labelBindings.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelBindings.Location = new Point(45, 17);
labelBindings.Margin = new Padding(4, 0, 4, 0);
labelBindings.Name = "labelBindings";
labelBindings.Size = new Size(114, 32);
labelBindings.TabIndex = 40;
labelBindings.Text = "Bindings";
//
// Handheld
//
AutoScaleDimensions = new SizeF(13F, 32F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1293, 940);
AutoSize = true;
ClientSize = new Size(1082, 932);
Controls.Add(panelBindings);
Controls.Add(panelController);
MaximizeBox = false;
MinimizeBox = false;
@@ -586,6 +694,11 @@
panelSDeadzone.ResumeLayout(false);
panelSDeadzone.PerformLayout();
((System.ComponentModel.ISupportInitialize)pictureSDeadzone).EndInit();
panelBindings.ResumeLayout(false);
panelBindings.PerformLayout();
panel1.ResumeLayout(false);
panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)pictureBindings).EndInit();
ResumeLayout(false);
PerformLayout();
}
@@ -627,5 +740,13 @@
private PictureBox pictureVibration;
private Label labelVibraHeader;
private UI.RButton buttonReset;
private Panel panelBindings;
private Panel panel1;
private PictureBox pictureBindings;
private Label labelBindings;
private Label labelM2;
private UI.RComboBox comboM2;
private Label labelM1;
private UI.RComboBox comboM1;
}
}