private static extern bool CecManager_SendKeypress(IntPtr ptr, CecLogicalAddress iDestination, CecControlCode key, [MarshalAs(UnmanagedType.I1)] bool bWait);
public async Task <bool> SendKeypress(CecLogicalAddress iDestination, CecControlCode key, bool bWait) { return(await readLock.Run(() => cecManager.SendKeypress(iDestination, key, bWait))); }
public bool SendKeypress(CecLogicalAddress iDestination, CecControlCode key, bool bWait) { return(CecManager_SendKeypress(ptr, iDestination, key, bWait)); }