repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: added vendor id detection for LG. changed vendorid display to hex
[deb_libcec.git]
/
src
/
lib
/
LibCEC.cpp
diff --git
a/src/lib/LibCEC.cpp
b/src/lib/LibCEC.cpp
index a1f2650f4198305561ae6943b33c449dce7bc47d..97427958f9df8d1f65cc0f565d6840ace93cf4fe 100644
(file)
--- a/
src/lib/LibCEC.cpp
+++ b/
src/lib/LibCEC.cpp
@@
-198,6
+198,11
@@
bool CLibCEC::SetOSDString(cec_logical_address iLogicalAddress, cec_display_cont
return m_cec ? m_cec->SetOSDString(iLogicalAddress, duration, strMessage) : false;
}
return m_cec ? m_cec->SetOSDString(iLogicalAddress, duration, strMessage) : false;
}
+bool CLibCEC::SwitchMonitoring(bool bEnable)
+{
+ return m_cec ? m_cec->SwitchMonitoring(bEnable) : false;
+}
+
void CLibCEC::AddLog(cec_log_level level, const string &strMessage)
{
if (m_cec)
void CLibCEC::AddLog(cec_log_level level, const string &strMessage)
{
if (m_cec)
@@
-251,6
+256,13
@@
void CLibCEC::SetCurrentButton(cec_user_control_code iButtonCode)
{
m_iCurrentButton = iButtonCode;
m_buttontime = GetTimeMs();
{
m_iCurrentButton = iButtonCode;
m_buttontime = GetTimeMs();
+
+ /* push keypress to the keybuffer with 0 duration.
+ push another press to the keybuffer with the duration set when the button is released */
+ cec_keypress key;
+ key.duration = 0;
+ key.keycode = m_iCurrentButton;
+ m_keyBuffer.Push(key);
}
void * CECCreate(const char *strDeviceName, CEC::cec_logical_address iLogicalAddress /*= CEC::CECDEVICE_PLAYBACKDEVICE1 */, uint16_t iPhysicalAddress /* = CEC_DEFAULT_PHYSICAL_ADDRESS */)
}
void * CECCreate(const char *strDeviceName, CEC::cec_logical_address iLogicalAddress /*= CEC::CECDEVICE_PLAYBACKDEVICE1 */, uint16_t iPhysicalAddress /* = CEC_DEFAULT_PHYSICAL_ADDRESS */)