mirror of
https://gitea.tendokyu.moe/beerpsi/sinmai-mods.git
synced 2024-11-23 23:31:02 +01:00
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 void Recv()
|
||||
{
|
||||
Thread.Sleep(_touchPanelDelayMsec);
|
||||
if (_touchPanelDelayMsec > 0)
|
||||
{
|
||||
Thread.Sleep(_touchPanelDelayMsec);
|
||||
}
|
||||
|
||||
orig_Recv();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user