这一次触发离上一次太近,算作抖动忽略掉

This commit is contained in:
大石头X2 2017-01-07 21:04:24 +08:00
parent f1a1908615
commit d1a25f11c4
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ void InputPort::OnPress(bool down)
UInt64 now = Sys.Ms(); UInt64 now = Sys.Ms();
// 这一次触发离上一次太近,算作抖动忽略掉 // 这一次触发离上一次太近,算作抖动忽略掉
//if(_Last > 0 && ShakeTime > 0 && ((Int64)now - (Int64)_Last) < ShakeTime) return; if(_Last > 0 && ShakeTime > 0 && ((Int64)now - (Int64)_Last) < ShakeTime) return;
_Last = now; _Last = now;
// 允许两个值并存 // 允许两个值并存