From: Lars Op den Kamp Date: Thu, 25 Oct 2012 11:56:43 +0000 (+0200) Subject: log unhandled vendor remote keycodes in the log, so they get logged without debugging... X-Git-Tag: upstream/2.2.0~1^2~13^2~10 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=5da98c47c1fedea3fcd01c96b62b96af55358807 log unhandled vendor remote keycodes in the log, so they get logged without debugging enabled --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index 2be7f3a..863b617 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -718,6 +718,12 @@ int CCECCommandHandler::HandleVendorCommand(const cec_command & UNUSED(command)) return CEC_ABORT_REASON_INVALID_OPERAND; } +int CCECCommandHandler::HandleVendorRemoteButtonDown(const cec_command& command) +{ + 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)) diff --git a/src/lib/implementations/CECCommandHandler.h b/src/lib/implementations/CECCommandHandler.h index ccefb58..b09f9b3 100644 --- a/src/lib/implementations/CECCommandHandler.h +++ b/src/lib/implementations/CECCommandHandler.h @@ -135,7 +135,7 @@ namespace CEC virtual int HandleUserControlPressed(const cec_command &command); virtual int HandleUserControlRelease(const cec_command &command); virtual int HandleVendorCommand(const cec_command &command); - virtual int HandleVendorRemoteButtonDown(const cec_command & UNUSED(command)) { return COMMAND_HANDLED; } + virtual int HandleVendorRemoteButtonDown(const cec_command& command); virtual int HandleVendorRemoteButtonUp(const cec_command & UNUSED(command)) { return COMMAND_HANDLED; } virtual void UnhandledCommand(const cec_command &command, const cec_abort_reason reason);