From: Lars Op den Kamp Date: Sat, 17 Nov 2012 02:22:27 +0000 (+0100) Subject: philips: some models send a vendor key release after a normal key press. only the... X-Git-Tag: upstream/2.2.0~1^2~11^2 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=1c8829bdd654b1cb7ed2c1bd1c7a437d5b198bcf philips: some models send a vendor key release after a normal key press. only the first press was picked up because of this. closes #92 --- diff --git a/src/lib/implementations/PHCommandHandler.h b/src/lib/implementations/PHCommandHandler.h index d1788c0..cf61c66 100644 --- a/src/lib/implementations/PHCommandHandler.h +++ b/src/lib/implementations/PHCommandHandler.h @@ -71,6 +71,7 @@ namespace CEC virtual int HandleUserControlRelease(const cec_command& command); virtual bool TransmitVendorID(const cec_logical_address iInitiator, const cec_logical_address iDestination, uint64_t iVendorId, bool bIsReply); virtual int HandleDeviceVendorId(const cec_command& command); + virtual int HandleVendorRemoteButtonUp(const cec_command & UNUSED(command)) { m_iLastKeyCode = CEC_USER_CONTROL_CODE_UNKNOWN; return COMMAND_HANDLED; } uint8_t m_iLastKeyCode; CImageViewOnCheck* m_imageViewOnCheck; };