处理001类型弹起刷新时间。触摸开关莫名时间超长可能是因为这个问题
This commit is contained in:
parent
81bb68b0c8
commit
96421ab6f9
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue