+
+bool CCECProcessor::SendKeypress(cec_logical_address iDestination, cec_user_control_code key, bool bWait /* = false */)
+{
+ return m_busDevices[iDestination]->SendKeypress(key, bWait);
+}
+
+bool CCECProcessor::SendKeyRelease(cec_logical_address iDestination, bool bWait /* = false */)
+{
+ return m_busDevices[iDestination]->SendKeyRelease(bWait);
+}
+
+void *CCECBusScan::Process(void)
+{
+ CCECBusDevice *device(NULL);
+ for (unsigned int iPtr = 0; iPtr < 15 && !IsStopped(); iPtr++)
+ {
+ device = m_processor->m_busDevices[iPtr];
+ if (device && device->GetStatus() == CEC_DEVICE_STATUS_PRESENT)
+ {
+ if (!IsStopped())
+ device->GetPhysicalAddress();
+ Sleep(5);
+
+ if (!IsStopped())
+ device->GetCecVersion();
+ Sleep(5);
+
+ if (!IsStopped())
+ device->GetVendorId();
+ Sleep(5);
+ }
+ }
+ return NULL;
+}