X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FLibCEC.cpp;h=50239bc7e5a6529dfedf7e0d20f8f88b45bb4daa;hb=a33794d8b865d4b1d7b82fbae70bdb7658129614;hp=26fd7b0bdb68b26402b6e3ca1588cd938f124ed3;hpb=9f332fe262328ff230ae4ea69004f8f2e9f61e6f;p=deb_libcec.git diff --git a/src/lib/LibCEC.cpp b/src/lib/LibCEC.cpp index 26fd7b0..50239bc 100644 --- a/src/lib/LibCEC.cpp +++ b/src/lib/LibCEC.cpp @@ -302,6 +302,20 @@ uint8_t CLibCEC::MuteAudio(bool bWait /* = true */) return 0; } +bool CLibCEC::SendKeypress(cec_logical_address iDestination, cec_user_control_code key, bool bWait /* = false */) +{ + if (m_cec) + return m_cec->SendKeypress(iDestination, key, bWait); + return false; +} + +bool CLibCEC::SendKeyRelease(cec_logical_address iDestination, bool bWait /* = false */) +{ + if (m_cec) + return m_cec->SendKeyRelease(iDestination, bWait); + return false; +} + void CLibCEC::AddLog(cec_log_level level, const string &strMessage) { if (m_cec)