Use a nicer loop syntax in MainForm.ProcessInput
This commit is contained in:
parent
77e9197bcc
commit
927a8970d6
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue