Input: Improved config UI for Powerpad (+ added toggle for side A/B)

This commit is contained in:
Sour 2017-12-22 21:57:25 -05:00
parent c43c884293
commit d895c99cbd
16 changed files with 302 additions and 231 deletions

View file

@ -324,6 +324,7 @@ struct KeyMappingSet
KeyMapping Mapping3;
KeyMapping Mapping4;
uint32_t TurboSpeed = 0;
bool PowerpadUseSideA = false;
vector<KeyMapping> GetKeyMappingArray()
{

View file

@ -7,6 +7,7 @@ class PowerPad : public BaseControlDevice
private:
uint8_t _stateBufferL;
uint8_t _stateBufferH;
bool _useSideA = false;
protected:
string GetKeyNames() override
@ -17,8 +18,15 @@ protected:
void InternalSetStateFromInput() override
{
for(KeyMapping keyMapping : _keyMappings) {
for(int i = 0; i < 12; i++) {
SetPressedState(i, keyMapping.PowerPadButtons[i]);
for(int i = 0; i < 3; i++) {
for(int j = 0; j < 4; j++) {
if(_useSideA) {
//Invert the order of each row
SetPressedState(i*4+j, keyMapping.PowerPadButtons[i*4+(3-j)]);
} else {
SetPressedState(i*4+j, keyMapping.PowerPadButtons[i*4+j]);
}
}
}
}
}
@ -46,6 +54,7 @@ protected:
public:
PowerPad(uint8_t port, KeyMappingSet keyMappings) : BaseControlDevice(port, keyMappings)
{
_useSideA = keyMappings.PowerpadUseSideA;
}
uint8_t ReadRAM(uint16_t addr) override

View file

@ -89,6 +89,7 @@ namespace Mesen.GUI.Config
public InteropEmu.ControllerType ControllerType = InteropEmu.ControllerType.StandardController;
public List<KeyMappings> Keys = new List<KeyMappings>();
public UInt32 TurboSpeed = 2;
public bool PowerpadUseSideA = false;
public InteropEmu.KeyMappingSet GetKeyMappingSet()
{
@ -102,6 +103,7 @@ namespace Mesen.GUI.Config
mappingSet.Mapping3 = Keys[2].ToInteropMapping();
mappingSet.Mapping4 = Keys[3].ToInteropMapping();
mappingSet.TurboSpeed = TurboSpeed;
mappingSet.PowerpadUseSideA = PowerpadUseSideA;
return mappingSet;
}
}

View file

@ -635,6 +635,7 @@
<Form ID="frmPartyTapConfig">
</Form>
<Form ID="frmPowerPadConfig">
<Control ID="chkUseSideA">Use side A</Control>
</Form>
<Form ID="frmSuborKeyboardConfig">
</Form>

View file

@ -653,6 +653,7 @@
<Form ID="frmPartyTapConfig">
</Form>
<Form ID="frmPowerPadConfig">
<Control ID="chkUseSideA">Use side A</Control>
</Form>
<Form ID="frmSuborKeyboardConfig">
</Form>

View file

@ -665,6 +665,7 @@
<Form ID="frmPartyTapConfig">
</Form>
<Form ID="frmPowerPadConfig">
<Control ID="chkUseSideA">Utiliser le côté A</Control>
</Form>
<Form ID="frmSuborKeyboardConfig">
</Form>

View file

@ -649,6 +649,7 @@
<Form ID="frmPartyTapConfig">
</Form>
<Form ID="frmPowerPadConfig">
<Control ID="chkUseSideA">A面を使う</Control>
</Form>
<Form ID="frmSuborKeyboardConfig">
</Form>

View file

@ -651,6 +651,7 @@
<Form ID="frmPartyTapConfig">
</Form>
<Form ID="frmPowerPadConfig">
<Control ID="chkUseSideA">Use side A</Control>
</Form>
<Form ID="frmSuborKeyboardConfig">
</Form>

View file

@ -654,6 +654,7 @@
<Form ID="frmPartyTapConfig">
</Form>
<Form ID="frmPowerPadConfig">
<Control ID="chkUseSideA">Use side A</Control>
</Form>
<Form ID="frmSuborKeyboardConfig">
</Form>

View file

@ -654,6 +654,7 @@
<Form ID="frmPartyTapConfig">
</Form>
<Form ID="frmPowerPadConfig">
<Control ID="chkUseSideA">Use side A</Control>
</Form>
<Form ID="frmSuborKeyboardConfig">
</Form>

View file

@ -27,87 +27,87 @@
/// </summary>
private void InitializeComponent()
{
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.tlpMain = new System.Windows.Forms.TableLayoutPanel();
this.btn1 = new System.Windows.Forms.Button();
this.btn2 = new System.Windows.Forms.Button();
this.btn3 = new System.Windows.Forms.Button();
this.btn4 = new System.Windows.Forms.Button();
this.btn5 = new System.Windows.Forms.Button();
this.lblB = new System.Windows.Forms.Label();
this.lbl1 = new System.Windows.Forms.Label();
this.btn6 = new System.Windows.Forms.Button();
this.btn7 = new System.Windows.Forms.Button();
this.btn8 = new System.Windows.Forms.Button();
this.btn10 = new System.Windows.Forms.Button();
this.btn11 = new System.Windows.Forms.Button();
this.btn12 = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.lbl2 = new System.Windows.Forms.Label();
this.lbl3 = new System.Windows.Forms.Label();
this.lbl4 = new System.Windows.Forms.Label();
this.lbl5 = new System.Windows.Forms.Label();
this.lbl6 = new System.Windows.Forms.Label();
this.lbl7 = new System.Windows.Forms.Label();
this.lbl8 = new System.Windows.Forms.Label();
this.lbl12 = new System.Windows.Forms.Label();
this.lbl11 = new System.Windows.Forms.Label();
this.lbl10 = new System.Windows.Forms.Label();
this.lbl9 = new System.Windows.Forms.Label();
this.btn9 = new System.Windows.Forms.Button();
this.btnClearKeys = new System.Windows.Forms.Button();
this.tableLayoutPanel1.SuspendLayout();
this.tlpMain.SuspendLayout();
this.SuspendLayout();
//
// tableLayoutPanel1
// tlpMain
//
this.tableLayoutPanel1.ColumnCount = 7;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Controls.Add(this.btn1, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.btn2, 2, 1);
this.tableLayoutPanel1.Controls.Add(this.btn3, 3, 1);
this.tableLayoutPanel1.Controls.Add(this.btn4, 4, 1);
this.tableLayoutPanel1.Controls.Add(this.btn5, 1, 3);
this.tableLayoutPanel1.Controls.Add(this.lblB, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.btn6, 2, 3);
this.tableLayoutPanel1.Controls.Add(this.btn7, 3, 3);
this.tableLayoutPanel1.Controls.Add(this.btn8, 4, 3);
this.tableLayoutPanel1.Controls.Add(this.btn10, 2, 5);
this.tableLayoutPanel1.Controls.Add(this.btn11, 3, 5);
this.tableLayoutPanel1.Controls.Add(this.btn12, 4, 5);
this.tableLayoutPanel1.Controls.Add(this.label3, 2, 2);
this.tableLayoutPanel1.Controls.Add(this.label2, 3, 2);
this.tableLayoutPanel1.Controls.Add(this.label4, 4, 2);
this.tableLayoutPanel1.Controls.Add(this.label1, 1, 4);
this.tableLayoutPanel1.Controls.Add(this.label6, 2, 4);
this.tableLayoutPanel1.Controls.Add(this.label5, 3, 4);
this.tableLayoutPanel1.Controls.Add(this.label7, 4, 4);
this.tableLayoutPanel1.Controls.Add(this.label8, 4, 6);
this.tableLayoutPanel1.Controls.Add(this.label9, 3, 6);
this.tableLayoutPanel1.Controls.Add(this.label10, 2, 6);
this.tableLayoutPanel1.Controls.Add(this.label11, 1, 6);
this.tableLayoutPanel1.Controls.Add(this.btn9, 1, 5);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 8;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(268, 252);
this.tableLayoutPanel1.TabIndex = 2;
this.tlpMain.ColumnCount = 7;
this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tlpMain.Controls.Add(this.btn1, 1, 1);
this.tlpMain.Controls.Add(this.btn2, 2, 1);
this.tlpMain.Controls.Add(this.btn3, 3, 1);
this.tlpMain.Controls.Add(this.btn4, 4, 1);
this.tlpMain.Controls.Add(this.btn5, 1, 3);
this.tlpMain.Controls.Add(this.lbl1, 1, 2);
this.tlpMain.Controls.Add(this.btn6, 2, 3);
this.tlpMain.Controls.Add(this.btn7, 3, 3);
this.tlpMain.Controls.Add(this.btn8, 4, 3);
this.tlpMain.Controls.Add(this.btn10, 2, 5);
this.tlpMain.Controls.Add(this.btn11, 3, 5);
this.tlpMain.Controls.Add(this.btn12, 4, 5);
this.tlpMain.Controls.Add(this.lbl2, 2, 2);
this.tlpMain.Controls.Add(this.lbl3, 3, 2);
this.tlpMain.Controls.Add(this.lbl4, 4, 2);
this.tlpMain.Controls.Add(this.lbl5, 1, 4);
this.tlpMain.Controls.Add(this.lbl6, 2, 4);
this.tlpMain.Controls.Add(this.lbl7, 3, 4);
this.tlpMain.Controls.Add(this.lbl8, 4, 4);
this.tlpMain.Controls.Add(this.lbl12, 4, 6);
this.tlpMain.Controls.Add(this.lbl11, 3, 6);
this.tlpMain.Controls.Add(this.lbl10, 2, 6);
this.tlpMain.Controls.Add(this.lbl9, 1, 6);
this.tlpMain.Controls.Add(this.btn9, 1, 5);
this.tlpMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.tlpMain.Location = new System.Drawing.Point(0, 0);
this.tlpMain.Name = "tlpMain";
this.tlpMain.RowCount = 8;
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tlpMain.Size = new System.Drawing.Size(282, 270);
this.tlpMain.TabIndex = 2;
//
// btn1
//
this.btn1.Location = new System.Drawing.Point(3, 4);
this.btn1.Location = new System.Drawing.Point(10, 10);
this.btn1.Name = "btn1";
this.btn1.Size = new System.Drawing.Size(61, 59);
this.btn1.TabIndex = 30;
@ -116,7 +116,7 @@
//
// btn2
//
this.btn2.Location = new System.Drawing.Point(70, 4);
this.btn2.Location = new System.Drawing.Point(77, 10);
this.btn2.Name = "btn2";
this.btn2.Size = new System.Drawing.Size(61, 59);
this.btn2.TabIndex = 34;
@ -125,7 +125,7 @@
//
// btn3
//
this.btn3.Location = new System.Drawing.Point(137, 4);
this.btn3.Location = new System.Drawing.Point(144, 10);
this.btn3.Name = "btn3";
this.btn3.Size = new System.Drawing.Size(61, 59);
this.btn3.TabIndex = 32;
@ -134,7 +134,7 @@
//
// btn4
//
this.btn4.Location = new System.Drawing.Point(204, 4);
this.btn4.Location = new System.Drawing.Point(211, 10);
this.btn4.Name = "btn4";
this.btn4.Size = new System.Drawing.Size(61, 59);
this.btn4.TabIndex = 33;
@ -143,27 +143,27 @@
//
// btn5
//
this.btn5.Location = new System.Drawing.Point(3, 87);
this.btn5.Location = new System.Drawing.Point(10, 95);
this.btn5.Name = "btn5";
this.btn5.Size = new System.Drawing.Size(61, 59);
this.btn5.TabIndex = 37;
this.btn5.Text = "B";
this.btn5.UseVisualStyleBackColor = true;
//
// lblB
// lbl1
//
this.lblB.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.lblB.AutoSize = true;
this.lblB.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblB.Location = new System.Drawing.Point(25, 66);
this.lblB.Name = "lblB";
this.lblB.Size = new System.Drawing.Size(16, 18);
this.lblB.TabIndex = 31;
this.lblB.Text = "1";
this.lbl1.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.lbl1.AutoSize = true;
this.lbl1.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl1.Location = new System.Drawing.Point(32, 72);
this.lbl1.Name = "lbl1";
this.lbl1.Size = new System.Drawing.Size(16, 18);
this.lbl1.TabIndex = 31;
this.lbl1.Text = "1";
//
// btn6
//
this.btn6.Location = new System.Drawing.Point(70, 87);
this.btn6.Location = new System.Drawing.Point(77, 95);
this.btn6.Name = "btn6";
this.btn6.Size = new System.Drawing.Size(61, 59);
this.btn6.TabIndex = 35;
@ -172,7 +172,7 @@
//
// btn7
//
this.btn7.Location = new System.Drawing.Point(137, 87);
this.btn7.Location = new System.Drawing.Point(144, 95);
this.btn7.Name = "btn7";
this.btn7.Size = new System.Drawing.Size(61, 59);
this.btn7.TabIndex = 38;
@ -181,7 +181,7 @@
//
// btn8
//
this.btn8.Location = new System.Drawing.Point(204, 87);
this.btn8.Location = new System.Drawing.Point(211, 95);
this.btn8.Name = "btn8";
this.btn8.Size = new System.Drawing.Size(61, 59);
this.btn8.TabIndex = 36;
@ -190,7 +190,7 @@
//
// btn10
//
this.btn10.Location = new System.Drawing.Point(70, 170);
this.btn10.Location = new System.Drawing.Point(77, 180);
this.btn10.Name = "btn10";
this.btn10.Size = new System.Drawing.Size(61, 59);
this.btn10.TabIndex = 40;
@ -199,7 +199,7 @@
//
// btn11
//
this.btn11.Location = new System.Drawing.Point(137, 170);
this.btn11.Location = new System.Drawing.Point(144, 180);
this.btn11.Name = "btn11";
this.btn11.Size = new System.Drawing.Size(61, 59);
this.btn11.TabIndex = 42;
@ -208,137 +208,137 @@
//
// btn12
//
this.btn12.Location = new System.Drawing.Point(204, 170);
this.btn12.Location = new System.Drawing.Point(211, 180);
this.btn12.Name = "btn12";
this.btn12.Size = new System.Drawing.Size(61, 59);
this.btn12.TabIndex = 39;
this.btn12.Text = "B";
this.btn12.UseVisualStyleBackColor = true;
//
// label3
// lbl2
//
this.label3.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.Location = new System.Drawing.Point(92, 66);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(16, 18);
this.label3.TabIndex = 45;
this.label3.Text = "2";
this.lbl2.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.lbl2.AutoSize = true;
this.lbl2.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl2.Location = new System.Drawing.Point(99, 72);
this.lbl2.Name = "lbl2";
this.lbl2.Size = new System.Drawing.Size(16, 18);
this.lbl2.TabIndex = 45;
this.lbl2.Text = "2";
//
// label2
// lbl3
//
this.label2.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(159, 66);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(16, 18);
this.label2.TabIndex = 44;
this.label2.Text = "3";
this.lbl3.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.lbl3.AutoSize = true;
this.lbl3.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl3.Location = new System.Drawing.Point(166, 72);
this.lbl3.Name = "lbl3";
this.lbl3.Size = new System.Drawing.Size(16, 18);
this.lbl3.TabIndex = 44;
this.lbl3.Text = "3";
//
// label4
// lbl4
//
this.label4.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.Location = new System.Drawing.Point(226, 66);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(16, 18);
this.label4.TabIndex = 46;
this.label4.Text = "4";
this.lbl4.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.lbl4.AutoSize = true;
this.lbl4.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl4.Location = new System.Drawing.Point(233, 72);
this.lbl4.Name = "lbl4";
this.lbl4.Size = new System.Drawing.Size(16, 18);
this.lbl4.TabIndex = 46;
this.lbl4.Text = "4";
//
// label1
// lbl5
//
this.label1.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(25, 149);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(16, 18);
this.label1.TabIndex = 43;
this.label1.Text = "5";
this.lbl5.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.lbl5.AutoSize = true;
this.lbl5.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl5.Location = new System.Drawing.Point(32, 157);
this.lbl5.Name = "lbl5";
this.lbl5.Size = new System.Drawing.Size(16, 18);
this.lbl5.TabIndex = 43;
this.lbl5.Text = "5";
//
// label6
// lbl6
//
this.label6.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label6.Location = new System.Drawing.Point(92, 149);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(16, 18);
this.label6.TabIndex = 48;
this.label6.Text = "6";
this.lbl6.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.lbl6.AutoSize = true;
this.lbl6.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl6.Location = new System.Drawing.Point(99, 157);
this.lbl6.Name = "lbl6";
this.lbl6.Size = new System.Drawing.Size(16, 18);
this.lbl6.TabIndex = 48;
this.lbl6.Text = "6";
//
// label5
// lbl7
//
this.label5.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.Location = new System.Drawing.Point(159, 149);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(16, 18);
this.label5.TabIndex = 47;
this.label5.Text = "7";
this.lbl7.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.lbl7.AutoSize = true;
this.lbl7.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl7.Location = new System.Drawing.Point(166, 157);
this.lbl7.Name = "lbl7";
this.lbl7.Size = new System.Drawing.Size(16, 18);
this.lbl7.TabIndex = 47;
this.lbl7.Text = "7";
//
// label7
// lbl8
//
this.label7.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.Location = new System.Drawing.Point(226, 149);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(16, 18);
this.label7.TabIndex = 49;
this.label7.Text = "8";
this.lbl8.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.lbl8.AutoSize = true;
this.lbl8.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl8.Location = new System.Drawing.Point(233, 157);
this.lbl8.Name = "lbl8";
this.lbl8.Size = new System.Drawing.Size(16, 18);
this.lbl8.TabIndex = 49;
this.lbl8.Text = "8";
//
// label8
// lbl12
//
this.label8.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.Location = new System.Drawing.Point(222, 232);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(24, 18);
this.label8.TabIndex = 50;
this.label8.Text = "12";
this.lbl12.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.lbl12.AutoSize = true;
this.lbl12.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl12.Location = new System.Drawing.Point(229, 242);
this.lbl12.Name = "lbl12";
this.lbl12.Size = new System.Drawing.Size(24, 18);
this.lbl12.TabIndex = 50;
this.lbl12.Text = "12";
//
// label9
// lbl11
//
this.label9.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label9.Location = new System.Drawing.Point(156, 232);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(23, 18);
this.label9.TabIndex = 51;
this.label9.Text = "11";
this.lbl11.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.lbl11.AutoSize = true;
this.lbl11.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl11.Location = new System.Drawing.Point(163, 242);
this.lbl11.Name = "lbl11";
this.lbl11.Size = new System.Drawing.Size(23, 18);
this.lbl11.TabIndex = 51;
this.lbl11.Text = "11";
//
// label10
// lbl10
//
this.label10.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label10.Location = new System.Drawing.Point(88, 232);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(24, 18);
this.label10.TabIndex = 52;
this.label10.Text = "10";
this.lbl10.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.lbl10.AutoSize = true;
this.lbl10.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl10.Location = new System.Drawing.Point(95, 242);
this.lbl10.Name = "lbl10";
this.lbl10.Size = new System.Drawing.Size(24, 18);
this.lbl10.TabIndex = 52;
this.lbl10.Text = "10";
//
// label11
// lbl9
//
this.label11.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label11.Location = new System.Drawing.Point(25, 232);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(16, 18);
this.label11.TabIndex = 53;
this.label11.Text = "9";
this.lbl9.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.lbl9.AutoSize = true;
this.lbl9.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl9.Location = new System.Drawing.Point(32, 242);
this.lbl9.Name = "lbl9";
this.lbl9.Size = new System.Drawing.Size(16, 18);
this.lbl9.TabIndex = 53;
this.lbl9.Text = "9";
//
// btn9
//
this.btn9.Location = new System.Drawing.Point(3, 170);
this.btn9.Location = new System.Drawing.Point(10, 180);
this.btn9.Name = "btn9";
this.btn9.Size = new System.Drawing.Size(61, 59);
this.btn9.TabIndex = 41;
@ -359,41 +359,41 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.tableLayoutPanel1);
this.Controls.Add(this.tlpMain);
this.Name = "ctrlPowerPadConfig";
this.Size = new System.Drawing.Size(268, 252);
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.Size = new System.Drawing.Size(282, 270);
this.tlpMain.ResumeLayout(false);
this.tlpMain.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.TableLayoutPanel tlpMain;
private System.Windows.Forms.Button btn1;
private System.Windows.Forms.Button btn2;
private System.Windows.Forms.Button btn3;
private System.Windows.Forms.Button btn4;
private System.Windows.Forms.Button btn5;
private System.Windows.Forms.Label lblB;
private System.Windows.Forms.Label lbl1;
private System.Windows.Forms.Button btn6;
private System.Windows.Forms.Button btn7;
private System.Windows.Forms.Button btn8;
private System.Windows.Forms.Button btn10;
private System.Windows.Forms.Button btn11;
private System.Windows.Forms.Button btn12;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label lbl2;
private System.Windows.Forms.Label lbl3;
private System.Windows.Forms.Label lbl4;
private System.Windows.Forms.Label lbl5;
private System.Windows.Forms.Label lbl6;
private System.Windows.Forms.Label lbl7;
private System.Windows.Forms.Label lbl8;
private System.Windows.Forms.Label lbl12;
private System.Windows.Forms.Label lbl11;
private System.Windows.Forms.Label lbl10;
private System.Windows.Forms.Label lbl9;
private System.Windows.Forms.Button btn9;
private System.Windows.Forms.Button btnClearKeys;
}

View file

@ -23,6 +23,34 @@ namespace Mesen.GUI.Forms.Config
_keyIndexes = new List<Button>() {
btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8, btn9, btn10, btn11, btn12
};
ShowSideA = false;
}
public bool ShowSideA
{
set
{
btn1.BackColor = value ? SystemColors.ControlDark : Color.LightBlue;
btn2.BackColor = Color.LightBlue;
btn3.BackColor = value ? Color.LightBlue : Color.IndianRed;
btn4.BackColor = value ? SystemColors.ControlDark : Color.IndianRed;
btn5.BackColor = Color.LightBlue;
btn6.BackColor = value ? Color.IndianRed : Color.LightBlue;
btn7.BackColor = Color.IndianRed;
btn8.BackColor = value ? Color.LightBlue : Color.IndianRed;
btn9.BackColor = value ? SystemColors.ControlDark : Color.LightBlue;
btn10.BackColor = Color.LightBlue;
btn11.BackColor = value ? Color.LightBlue : Color.IndianRed;
btn12.BackColor = value ? SystemColors.ControlDark : Color.IndianRed;
lbl1.Visible = lbl2.Visible =
lbl3.Visible = lbl4.Visible =
lbl5.Visible = lbl6.Visible =
lbl7.Visible = lbl8.Visible =
lbl9.Visible = lbl10.Visible =
lbl11.Visible = lbl12.Visible = !value;
}
}
public override void Initialize(KeyMappings mappings)

View file

@ -32,6 +32,7 @@
this.imageList = new System.Windows.Forms.ImageList(this.components);
this.btnClear = new System.Windows.Forms.Button();
this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
this.btnSetDefault = new System.Windows.Forms.Button();
this.tlpMain = new System.Windows.Forms.TableLayoutPanel();
this.tabMain = new System.Windows.Forms.TabControl();
this.tpgSet1 = new System.Windows.Forms.TabPage();
@ -42,6 +43,7 @@
this.ctrlPowerPadConfig2 = new Mesen.GUI.Forms.Config.ctrlPowerPadConfig();
this.tpgSet4 = new System.Windows.Forms.TabPage();
this.ctrlPowerPadConfig3 = new Mesen.GUI.Forms.Config.ctrlPowerPadConfig();
this.chkUseSideA = new System.Windows.Forms.CheckBox();
this.mnuStripPreset = new System.Windows.Forms.ContextMenuStrip(this.components);
this.mnuKeyboard = new System.Windows.Forms.ToolStripMenuItem();
this.mnuWasdLayout = new System.Windows.Forms.ToolStripMenuItem();
@ -59,7 +61,6 @@
this.mnuSnes30Layout1 = new System.Windows.Forms.ToolStripMenuItem();
this.mnuSnes30Layout2 = new System.Windows.Forms.ToolStripMenuItem();
this.ctrlKeyBindingHint1 = new Mesen.GUI.Forms.Config.ctrlKeyBindingHint();
this.btnSetDefault = new System.Windows.Forms.Button();
this.baseConfigPanel.SuspendLayout();
this.flowLayoutPanel2.SuspendLayout();
this.tlpMain.SuspendLayout();
@ -107,40 +108,47 @@
this.flowLayoutPanel2.Size = new System.Drawing.Size(264, 29);
this.flowLayoutPanel2.TabIndex = 5;
//
// btnSetDefault
//
this.btnSetDefault.AutoSize = true;
this.btnSetDefault.Location = new System.Drawing.Point(114, 3);
this.btnSetDefault.Name = "btnSetDefault";
this.btnSetDefault.Size = new System.Drawing.Size(113, 23);
this.btnSetDefault.TabIndex = 4;
this.btnSetDefault.Text = "Set Default Bindings";
this.btnSetDefault.UseVisualStyleBackColor = true;
this.btnSetDefault.Click += new System.EventHandler(this.btnSetDefault_Click);
//
// tlpMain
//
this.tlpMain.ColumnCount = 3;
this.tlpMain.ColumnCount = 1;
this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tlpMain.Controls.Add(this.tabMain, 0, 1);
this.tlpMain.Controls.Add(this.chkUseSideA, 0, 2);
this.tlpMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.tlpMain.Location = new System.Drawing.Point(0, 31);
this.tlpMain.Margin = new System.Windows.Forms.Padding(0);
this.tlpMain.Name = "tlpMain";
this.tlpMain.RowCount = 3;
this.tlpMain.RowCount = 4;
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tlpMain.Size = new System.Drawing.Size(496, 374);
this.tlpMain.TabIndex = 23;
//
// tabMain
//
this.tabMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tlpMain.SetColumnSpan(this.tabMain, 3);
this.tabMain.Controls.Add(this.tpgSet1);
this.tabMain.Controls.Add(this.tpgSet2);
this.tabMain.Controls.Add(this.tpgSet3);
this.tabMain.Controls.Add(this.tpgSet4);
this.tabMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabMain.ImageList = this.imageList;
this.tabMain.Location = new System.Drawing.Point(3, 3);
this.tabMain.Name = "tabMain";
this.tabMain.SelectedIndex = 0;
this.tabMain.Size = new System.Drawing.Size(490, 368);
this.tabMain.Size = new System.Drawing.Size(490, 345);
this.tabMain.TabIndex = 3;
//
// tpgSet1
@ -148,7 +156,7 @@
this.tpgSet1.Controls.Add(this.ctrlPowerPadConfig0);
this.tpgSet1.Location = new System.Drawing.Point(4, 23);
this.tpgSet1.Name = "tpgSet1";
this.tpgSet1.Size = new System.Drawing.Size(482, 341);
this.tpgSet1.Size = new System.Drawing.Size(482, 318);
this.tpgSet1.TabIndex = 0;
this.tpgSet1.Text = "Key Set #1";
this.tpgSet1.UseVisualStyleBackColor = true;
@ -158,7 +166,7 @@
this.ctrlPowerPadConfig0.Dock = System.Windows.Forms.DockStyle.Fill;
this.ctrlPowerPadConfig0.Location = new System.Drawing.Point(0, 0);
this.ctrlPowerPadConfig0.Name = "ctrlPowerPadConfig0";
this.ctrlPowerPadConfig0.Size = new System.Drawing.Size(482, 341);
this.ctrlPowerPadConfig0.Size = new System.Drawing.Size(482, 318);
this.ctrlPowerPadConfig0.TabIndex = 0;
//
// tpgSet2
@ -166,7 +174,7 @@
this.tpgSet2.Controls.Add(this.ctrlPowerPadConfig1);
this.tpgSet2.Location = new System.Drawing.Point(4, 23);
this.tpgSet2.Name = "tpgSet2";
this.tpgSet2.Size = new System.Drawing.Size(482, 341);
this.tpgSet2.Size = new System.Drawing.Size(482, 318);
this.tpgSet2.TabIndex = 1;
this.tpgSet2.Text = "Key Set #2";
this.tpgSet2.UseVisualStyleBackColor = true;
@ -176,7 +184,7 @@
this.ctrlPowerPadConfig1.Dock = System.Windows.Forms.DockStyle.Fill;
this.ctrlPowerPadConfig1.Location = new System.Drawing.Point(0, 0);
this.ctrlPowerPadConfig1.Name = "ctrlPowerPadConfig1";
this.ctrlPowerPadConfig1.Size = new System.Drawing.Size(482, 341);
this.ctrlPowerPadConfig1.Size = new System.Drawing.Size(482, 318);
this.ctrlPowerPadConfig1.TabIndex = 1;
//
// tpgSet3
@ -184,7 +192,7 @@
this.tpgSet3.Controls.Add(this.ctrlPowerPadConfig2);
this.tpgSet3.Location = new System.Drawing.Point(4, 23);
this.tpgSet3.Name = "tpgSet3";
this.tpgSet3.Size = new System.Drawing.Size(482, 341);
this.tpgSet3.Size = new System.Drawing.Size(482, 318);
this.tpgSet3.TabIndex = 2;
this.tpgSet3.Text = "Key Set #3";
this.tpgSet3.UseVisualStyleBackColor = true;
@ -194,7 +202,7 @@
this.ctrlPowerPadConfig2.Dock = System.Windows.Forms.DockStyle.Fill;
this.ctrlPowerPadConfig2.Location = new System.Drawing.Point(0, 0);
this.ctrlPowerPadConfig2.Name = "ctrlPowerPadConfig2";
this.ctrlPowerPadConfig2.Size = new System.Drawing.Size(482, 341);
this.ctrlPowerPadConfig2.Size = new System.Drawing.Size(482, 318);
this.ctrlPowerPadConfig2.TabIndex = 1;
//
// tpgSet4
@ -202,7 +210,7 @@
this.tpgSet4.Controls.Add(this.ctrlPowerPadConfig3);
this.tpgSet4.Location = new System.Drawing.Point(4, 23);
this.tpgSet4.Name = "tpgSet4";
this.tpgSet4.Size = new System.Drawing.Size(482, 341);
this.tpgSet4.Size = new System.Drawing.Size(482, 318);
this.tpgSet4.TabIndex = 3;
this.tpgSet4.Text = "Key Set #4";
this.tpgSet4.UseVisualStyleBackColor = true;
@ -212,9 +220,21 @@
this.ctrlPowerPadConfig3.Dock = System.Windows.Forms.DockStyle.Fill;
this.ctrlPowerPadConfig3.Location = new System.Drawing.Point(0, 0);
this.ctrlPowerPadConfig3.Name = "ctrlPowerPadConfig3";
this.ctrlPowerPadConfig3.Size = new System.Drawing.Size(482, 341);
this.ctrlPowerPadConfig3.Size = new System.Drawing.Size(482, 318);
this.ctrlPowerPadConfig3.TabIndex = 1;
//
// chkUseSideA
//
this.chkUseSideA.AutoSize = true;
this.chkUseSideA.Location = new System.Drawing.Point(8, 354);
this.chkUseSideA.Margin = new System.Windows.Forms.Padding(8, 3, 3, 3);
this.chkUseSideA.Name = "chkUseSideA";
this.chkUseSideA.Size = new System.Drawing.Size(77, 17);
this.chkUseSideA.TabIndex = 4;
this.chkUseSideA.Text = "Use side A";
this.chkUseSideA.UseVisualStyleBackColor = true;
this.chkUseSideA.CheckedChanged += new System.EventHandler(this.chkShowSideA_CheckedChanged);
//
// mnuStripPreset
//
this.mnuStripPreset.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
@ -338,17 +358,6 @@
this.ctrlKeyBindingHint1.Size = new System.Drawing.Size(496, 31);
this.ctrlKeyBindingHint1.TabIndex = 24;
//
// btnSetDefault
//
this.btnSetDefault.AutoSize = true;
this.btnSetDefault.Location = new System.Drawing.Point(114, 3);
this.btnSetDefault.Name = "btnSetDefault";
this.btnSetDefault.Size = new System.Drawing.Size(113, 23);
this.btnSetDefault.TabIndex = 4;
this.btnSetDefault.Text = "Set Default Bindings";
this.btnSetDefault.UseVisualStyleBackColor = true;
this.btnSetDefault.Click += new System.EventHandler(this.btnSetDefault_Click);
//
// frmPowerPadConfig
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -366,6 +375,7 @@
this.flowLayoutPanel2.ResumeLayout(false);
this.flowLayoutPanel2.PerformLayout();
this.tlpMain.ResumeLayout(false);
this.tlpMain.PerformLayout();
this.tabMain.ResumeLayout(false);
this.tpgSet1.ResumeLayout(false);
this.tpgSet2.ResumeLayout(false);
@ -409,5 +419,6 @@
private ctrlPowerPadConfig ctrlPowerPadConfig3;
private ctrlKeyBindingHint ctrlKeyBindingHint1;
private System.Windows.Forms.Button btnSetDefault;
private System.Windows.Forms.CheckBox chkUseSideA;
}
}

View file

@ -28,6 +28,8 @@ namespace Mesen.GUI.Forms.Config
ctrlPowerPadConfig2.Initialize(controllerInfo.Keys[2]);
ctrlPowerPadConfig3.Initialize(controllerInfo.Keys[3]);
AddBinding("PowerpadUseSideA", chkUseSideA);
this.Text += ": " + ResourceHelper.GetMessage("PlayerNumber", (portNumber + 1).ToString());
}
}
@ -41,5 +43,13 @@ namespace Mesen.GUI.Forms.Config
{
GetControllerControl().Initialize(Presets.PowerPad);
}
private void chkShowSideA_CheckedChanged(object sender, EventArgs e)
{
ctrlPowerPadConfig0.ShowSideA = chkUseSideA.Checked;
ctrlPowerPadConfig1.ShowSideA = chkUseSideA.Checked;
ctrlPowerPadConfig2.ShowSideA = chkUseSideA.Checked;
ctrlPowerPadConfig3.ShowSideA = chkUseSideA.Checked;
}
}
}

View file

@ -128,7 +128,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAK
CQAAAk1TRnQBSQFMAgEBAgEAAYABAAGAAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CQAAAk1TRnQBSQFMAgEBAgEAAZgBAAGYAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA

View file

@ -891,6 +891,9 @@ namespace Mesen.GUI
public KeyMapping Mapping3;
public KeyMapping Mapping4;
public UInt32 TurboSpeed;
[MarshalAs(UnmanagedType.I1)]
public bool PowerpadUseSideA;
}
public struct KeyMapping