From ec0cc2ea24b8c4757e0d9508646e75d05d469a79 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Wed, 14 Nov 2012 10:39:22 +0100 Subject: [PATCH] philips TVs sometimes keep sending key presses without key releases --- src/lib/implementations/PHCommandHandler.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/implementations/PHCommandHandler.cpp b/src/lib/implementations/PHCommandHandler.cpp index 0d9f010..a4e7129 100644 --- a/src/lib/implementations/PHCommandHandler.cpp +++ b/src/lib/implementations/PHCommandHandler.cpp @@ -129,9 +129,8 @@ bool CPHCommandHandler::ActivateSource(bool bTransmitDelayedCommandsOnly /* = fa int CPHCommandHandler::HandleUserControlPressed(const cec_command& command) { - // tv keeps sending these until a button is pressed - if (command.parameters[0] == CEC_USER_CONTROL_CODE_DISPLAY_INFORMATION && - m_iLastKeyCode == CEC_USER_CONTROL_CODE_DISPLAY_INFORMATION) + // TV sometimes keeps sending key presses without releases + if (m_iLastKeyCode == command.parameters[0]) return COMMAND_HANDLED; m_iLastKeyCode = command.parameters[0]; -- 2.34.1