cec: samsung's vendor specific remote keypresses don't send key releases. added call...
[deb_libcec.git] / src / lib / implementations / ANCommandHandler.cpp
index 32565ed0541f07357f76782b51e4f3c7e9761f0a..ef972f8a5408c9f9c357403c0c5810324ee1029d 100644 (file)
@@ -1,4 +1,3 @@
-#pragma once
 /*
  * This file is part of the libCEC(R) library.
  *
@@ -32,7 +31,7 @@
  */
 
 #include "ANCommandHandler.h"
-#include "../CECBusDevice.h"
+#include "../devices/CECBusDevice.h"
 #include "../CECProcessor.h"
 #include "../util/StdString.h"
 
@@ -66,6 +65,9 @@ bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command)
       m_busDevice->AddLog(CEC_LOG_DEBUG, strLog);
 
       m_busDevice->GetProcessor()->SetCurrentButton((cec_user_control_code) command.parameters[0]);
+
+      // these ones don't send key release events
+      m_busDevice->GetProcessor()->AddKey();
     }
   }