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

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