Use a nicer loop syntax in MainForm.ProcessInput

This commit is contained in:
YoshiRulz 2021-03-27 11:50:04 +10:00
parent 77e9197bcc
commit 927a8970d6
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 3 additions and 8 deletions

View File

@ -969,15 +969,10 @@ namespace BizHawk.Client.EmuHawk
Func<string, List<string>> searchHotkeyBindings,
Func<string, bool> activeControllerHasBinding)
{
for (; ; )
// loop through all available events
Input.InputEvent ie;
while ((ie = Input.Instance.DequeueEvent()) != null)
{
// loop through all available events
var ie = Input.Instance.DequeueEvent();
if (ie == null)
{
break;
}
// useful debugging:
// Console.WriteLine(ie);