fix(TouchPanel): Don't sleep if DelayMs is 0

This commit is contained in:
beer-psi 2024-08-08 14:01:43 +07:00
parent 84291635db
commit 7d67ab0055

View File

@ -42,8 +42,12 @@ class patch_NewTouchPanel : NewTouchPanel
private extern void orig_Recv();
private void Recv()
{
if (_touchPanelDelayMsec > 0)
{
Thread.Sleep(_touchPanelDelayMsec);
}
orig_Recv();
}