repositories
/
deb_libcec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a424eba
)
cec: log keypresses in the debug log
author
Lars Op den Kamp
<lars@opdenkamp.eu>
Fri, 14 Oct 2011 10:22:15 +0000
(12:22 +0200)
committer
Lars Op den Kamp
<lars@opdenkamp.eu>
Fri, 14 Oct 2011 10:22:15 +0000
(12:22 +0200)
src/lib/CECProcessor.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/CECProcessor.cpp
b/src/lib/CECProcessor.cpp
index 7ddf61297456c8942fae0582237f33cb7c1d10c0..b5796716d099e8cf27e4ccb48a3dfdade75539bb 100644
(file)
--- a/
src/lib/CECProcessor.cpp
+++ b/
src/lib/CECProcessor.cpp
@@
-560,7
+560,13
@@
void CCECProcessor::ParseCommand(cec_command &command)
m_controller->AddKey();
if (command.parameters[0] <= CEC_USER_CONTROL_CODE_MAX)
+ {
+ CStdString strLog;
+ strLog.Format("key pressed: %1x", command.parameters[0]);
+ m_controller->AddLog(CEC_LOG_DEBUG, strLog.c_str());
+
m_controller->SetCurrentButton((cec_user_control_code) command.parameters[0]);
+ }
}
break;
case CEC_OPCODE_USER_CONTROL_RELEASE: