处理001类型弹起刷新时间。触摸开关莫名时间超长可能是因为这个问题

This commit is contained in:
cdyong 2016-11-01 09:18:30 +00:00
parent 81bb68b0c8
commit 96421ab6f9
1 changed files with 4 additions and 1 deletions

View File

@ -375,7 +375,10 @@ void InputPort::OnPress(bool down)
if(down) if(down)
_Start = now; _Start = now;
else else
PressTime = now - _Start; {
PressTime = now - _Start;
_Start = now;
}
if(down) if(down)
{ {