void CCECClient::ResetPhysicalAddress(void)
{
- SetPhysicalAddress(m_configuration);
+ SetPhysicalAddress(CEC_DEFAULT_PHYSICAL_ADDRESS);
}
void CCECClient::SetPhysicalAddress(const libcec_configuration &configuration)
AddKey(true);
}
- m_iCurrentButton = transmitKey.keycode;
- m_buttontime = m_iCurrentButton == CEC_USER_CONTROL_CODE_UNKNOWN || key.duration > 0 ? 0 : GetTimeMs();
+ if (key.duration == 0)
+ {
+ m_iCurrentButton = transmitKey.keycode;
+ m_buttontime = m_iCurrentButton == CEC_USER_CONTROL_CODE_UNKNOWN || key.duration > 0 ? 0 : GetTimeMs();
+ }
}
if (key.keycode != COMBO_KEY || key.duration > 0)