- CStdString strLog;
- strLog.Format("key pressed: %1x", iButton);
- m_busDevice->AddLog(CEC_LOG_DEBUG, strLog);
-
- m_busDevice->GetProcessor()->SetCurrentButton((cec_user_control_code) command.parameters[0]);
+ CLibCEC::AddLog(CEC_LOG_DEBUG, "key pressed: %1x", key.keycode);
+ m_busDevice->GetProcessor()->AddKey(key);