X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=blobdiff_plain;f=src%2Flib%2FCECClient.cpp;h=12ca4ceb753c4bda0a2cf9c94969502372dd9d8c;hp=837214f456f54e724c29032664087064875874f9;hb=8d84f8b3cd5eaca3743e5518f1cb5a3fc0ecbe3c;hpb=709adc4b0943d843ec815781be120c8e129acc5f diff --git a/src/lib/CECClient.cpp b/src/lib/CECClient.cpp index 837214f..12ca4ce 100644 --- a/src/lib/CECClient.cpp +++ b/src/lib/CECClient.cpp @@ -1466,7 +1466,7 @@ void CCECClient::CallbackAddKey(const cec_keypress &key) int64_t now = GetTimeMs(); if (m_lastKeypress.keycode != key.keycode || key.duration > 0 || - now - m_iLastKeypressTime >= m_configuration.iDoubleTapTimeoutMs) + now - m_iLastKeypressTime >= m_configuration.iDoubleTapTimeoutMs * DOUBLE_TAP_TIMEOUT_UNIT_SIZE) { // no double tap if (key.duration == 0)