fix for LG models that send a vendor key up after a normal key down. issue #71
[deb_libcec.git] / src / lib / implementations / CECCommandHandler.cpp
index 2be7f3a7dffeace1768dc2a38b87068d82da5a6e..c5a58367e45f5f3b645fb7f3879d7b35f172cd61 100644 (file)
@@ -718,6 +718,15 @@ int CCECCommandHandler::HandleVendorCommand(const cec_command & UNUSED(command))
   return CEC_ABORT_REASON_INVALID_OPERAND;
 }
 
+int CCECCommandHandler::HandleVendorRemoteButtonDown(const cec_command& command)
+{
+  if (command.parameters.size == 0)
+    return CEC_ABORT_REASON_INVALID_OPERAND;
+
+  LIB_CEC->AddLog(CEC_LOG_NOTICE, "unhandled vendor remote button received with keycode %x", command.parameters[0]);
+  return COMMAND_HANDLED;
+}
+
 void CCECCommandHandler::UnhandledCommand(const cec_command &command, const cec_abort_reason reason)
 {
   if (m_processor->IsHandledByLibCEC(command.destination))