Short-circuit loops in `{,Autofire}Controller.LatchFromPhysical`

This commit is contained in:
YoshiRulz 2024-08-23 02:17:35 +10:00
parent 633216be14
commit 384e4c913c
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@ namespace BizHawk.Client.Common
if (finalHostController.IsPressed(button))
{
_buttons[k] = true;
break;
}
}
}

View File

@ -80,6 +80,7 @@ namespace BizHawk.Client.Common
if (controller.IsPressed(button))
{
_buttons[k] = true;
break;
}
}
}