X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FLibCecSharp%2FLibCecSharp.cpp;h=7f0667a84066d92245f91ba1827c7aa263aabcdc;hb=c2ce7bd11448e5e84ccce0ff5e466ca82e713190;hp=fb723236eb0fa4fd3892dbc7b65c8ff3aa050d9f;hpb=cc938f166e50b0c9e4fdccf55e0a8cffb2c56602;p=deb_libcec.git diff --git a/src/LibCecSharp/LibCecSharp.cpp b/src/LibCecSharp/LibCecSharp.cpp index fb72323..7f0667a 100644 --- a/src/LibCecSharp/LibCecSharp.cpp +++ b/src/LibCecSharp/LibCecSharp.cpp @@ -134,6 +134,11 @@ namespace CecSharp memcpy_s(config.strDeviceLanguage, 3, strDeviceLanguage, 3); } + if (netConfig->ServerVersion >= CecServerVersion::Version1_6_3) + { + config.bMonitorOnly = netConfig->MonitorOnlyClient ? 1 : 0; + } + config.callbacks = &g_cecCallbacks; } @@ -230,7 +235,7 @@ namespace CecSharp cec_keypress key; if (m_libCec->GetNextKeypress(&key)) { - return gcnew CecKeypress(key.keycode, key.duration); + return gcnew CecKeypress((CecUserControlCode)key.keycode, key.duration); } return gcnew CecKeypress();