cec: added the new methods to LibCecSharp
[deb_libcec.git] / src / LibCecSharp / LibCecSharp.cpp
index 707248a920a3e1464ee22ec6d679b93c979463c1..021b19a7cb7ba6ed1cc8751a250da9713d1938e5 100644 (file)
@@ -666,14 +666,14 @@ public:
     return m_libCec->MuteAudio(wait);
   }
 
-  bool TransmitKeypress(CecLogicalAddress destination, CecUserControlCode key, bool wait)
+  bool SendKeypress(CecLogicalAddress destination, CecUserControlCode key, bool wait)
   {
-    return m_libCec->TransmitKeypress((cec_logical_address)destination, (cec_user_control_code)key, wait);
+    return m_libCec->SendKeypress((cec_logical_address)destination, (cec_user_control_code)key, wait);
   }
 
-  bool TransmitKeyRelease(CecLogicalAddress destination, bool wait)
+  bool SendKeyRelease(CecLogicalAddress destination, bool wait)
   {
-    return m_libCec->TransmitKeyRelease((cec_logical_address)destination, wait);
+    return m_libCec->SendKeyRelease((cec_logical_address)destination, wait);
   }
 
   String ^ GetOSDName(CecLogicalAddress logicalAddress)
@@ -682,6 +682,16 @@ public:
     return gcnew String(osd.name);
   }
 
+  CecLogicalAddress GetActiveSource()
+  {
+    return (CecLogicalAddress)m_libCec->GetActiveSource();
+  }
+
+  bool IsActiveSource(CecLogicalAddress logicalAddress)
+  {
+    return m_libCec->IsActiveSource((cec_logical_address)logicalAddress);
+  }
+
 private:
    ICECAdapter *m_libCec;
 };