X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FANCommandHandler.cpp;h=75d0a8c23c89f12c29134d48f25d7779a6fbe868;hb=538d8471f79f8611c950ae443d9206553fb04a7a;hp=e9674baafb22f84ca8f575d46e407884156cf8a4;hpb=5f3167157997a0d64fd8a44ad04babf43327eec8;p=deb_libcec.git diff --git a/src/lib/implementations/ANCommandHandler.cpp b/src/lib/implementations/ANCommandHandler.cpp index e9674ba..75d0a8c 100644 --- a/src/lib/implementations/ANCommandHandler.cpp +++ b/src/lib/implementations/ANCommandHandler.cpp @@ -33,13 +33,15 @@ #include "ANCommandHandler.h" #include "../devices/CECBusDevice.h" #include "../CECProcessor.h" -#include "../util/StdString.h" +#include "../LibCEC.h" using namespace CEC; CANCommandHandler::CANCommandHandler(CCECBusDevice *busDevice) : CCECCommandHandler(busDevice) { + m_vendorId = CEC_VENDOR_SAMSUNG; + m_bOPTSendDeckStatusUpdateOnActiveSource = false; } bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command) @@ -60,13 +62,7 @@ bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command) } if (key.keycode != CEC_USER_CONTROL_CODE_UNKNOWN) - { - CStdString strLog; - strLog.Format("key pressed: %1x", key.keycode); - m_busDevice->AddLog(CEC_LOG_DEBUG, strLog); - - m_busDevice->GetProcessor()->AddKey(key); - } + CLibCEC::AddKey(key); } return true;