fix(TouchPanel): Don't sleep if DelayMs is 0
This commit is contained in:
parent
84291635db
commit
7d67ab0055
@ -43,7 +43,11 @@ class patch_NewTouchPanel : NewTouchPanel
|
|||||||
private extern void orig_Recv();
|
private extern void orig_Recv();
|
||||||
private void Recv()
|
private void Recv()
|
||||||
{
|
{
|
||||||
Thread.Sleep(_touchPanelDelayMsec);
|
if (_touchPanelDelayMsec > 0)
|
||||||
|
{
|
||||||
|
Thread.Sleep(_touchPanelDelayMsec);
|
||||||
|
}
|
||||||
|
|
||||||
orig_Recv();
|
orig_Recv();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user