Remove buttons from HelloWorld ext. tool which used GetInput/SetInput

fixes c11d410fb; I'm sure I could have rewritten these to use IJoypad but, like
the rest of this tool, it didn't seem like a great example
This commit is contained in:
YoshiRulz 2021-03-19 07:51:13 +10:00
parent c5e84ff02e
commit c53732c80c
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 0 additions and 51 deletions

View File

@ -34,8 +34,6 @@
this.label_Game = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.label_GameHash = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.savestateLabel = new System.Windows.Forms.Label();
this.savestateName = new System.Windows.Forms.TextBox();
this.saveState = new System.Windows.Forms.Button();
@ -97,26 +95,6 @@
this.label_GameHash.TabIndex = 5;
this.label_GameHash.Text = "label5";
//
// button2
//
this.button2.Location = new System.Drawing.Point(72, 197);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(98, 23);
this.button2.TabIndex = 6;
this.button2.Text = "Current Buttons";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
this.button3.Location = new System.Drawing.Point(72, 226);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(98, 23);
this.button3.TabIndex = 7;
this.button3.Text = "10 A Press";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// savestateLabel
//
this.savestateLabel.AutoSize = true;
@ -162,8 +140,6 @@
this.Controls.Add(this.saveState);
this.Controls.Add(this.savestateName);
this.Controls.Add(this.savestateLabel);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.label_GameHash);
this.Controls.Add(this.button1);
this.Controls.Add(this.label_Game);
@ -185,8 +161,6 @@
private System.Windows.Forms.Label label_Game;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label_GameHash;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Label savestateLabel;
private System.Windows.Forms.TextBox savestateName;
private System.Windows.Forms.Button saveState;

View File

@ -123,31 +123,6 @@ namespace HelloWorld
private void button1_Click(object sender, EventArgs e) => APIs.EmuClient.DoFrameAdvance();
private void button2_Click(object sender, EventArgs e) => APIs.EmuClient.GetInput(1);
private void button3_Click(object sender, EventArgs e)
{
for (var i = 0; i < 600; i++)
{
if (i % 60 == 0)
{
var j1 = APIs.EmuClient.GetInput(1);
j1.AddInput(JoypadButton.A);
APIs.EmuClient.SetInput(1, j1);
APIs.EmuClient.DoFrameAdvance();
j1.RemoveInput(JoypadButton.A);
APIs.EmuClient.SetInput(1, j1);
APIs.EmuClient.DoFrameAdvance();
}
APIs.EmuClient.DoFrameAdvance();
}
var j = APIs.EmuClient.GetInput(1);
j.ClearInputs();
APIs.EmuClient.SetInput(1, j);
}
private void label_GameHash_Click(object sender, EventArgs e) => Clipboard.SetText(APIs.GameInfo.GetRomHash());
private void loadstate_Click(object sender, EventArgs e)