TAStudio - main form responds to hotkeys/controller input pressed while in tastudio

This commit is contained in:
adelikat 2012-12-02 01:56:30 +00:00
parent 7d8ee4ec0a
commit 10585b69e4
3 changed files with 7 additions and 0 deletions

View File

@ -2207,6 +2207,7 @@ namespace BizHawk.MultiClient
if (Form.ActiveForm is InputConfig) return true;
if (Form.ActiveForm is HotkeyWindow) return true;
if (Form.ActiveForm is ControllerConfig) return true;
if (Form.ActiveForm is TAStudio) return true;
//if no form is active on this process, then the background input setting applies
if (Form.ActiveForm == null && Global.Config.AcceptBackgroundInput) return true;

View File

@ -693,6 +693,7 @@
this.Name = "TAStudio";
this.Text = "TAStudio";
this.Load += new System.EventHandler(this.TAStudio_Load);
this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TAStudio_KeyPress);
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.contextMenuStrip1.ResumeLayout(false);

View File

@ -777,5 +777,10 @@ namespace BizHawk.MultiClient
Global.MainForm.TogglePause();
}
}
private void TAStudio_KeyPress(object sender, KeyPressEventArgs e)
{
Global.MainForm.ProcessInput();
}
}
}