TAStudio - main form responds to hotkeys/controller input pressed while in tastudio
This commit is contained in:
parent
7d8ee4ec0a
commit
10585b69e4
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -777,5 +777,10 @@ namespace BizHawk.MultiClient
|
|||
Global.MainForm.TogglePause();
|
||||
}
|
||||
}
|
||||
|
||||
private void TAStudio_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
Global.MainForm.ProcessInput();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue