X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FLibCecSharp%2FLibCecSharp.cpp;h=7f0667a84066d92245f91ba1827c7aa263aabcdc;hb=34fe491f051387fa870da9459ce53892f7bb03ab;hp=97329b3e9cd773e8dd531528c3c815dc24588261;hpb=d3b96c620e8bf4235d0ccee29d5b8e76dcdd86b6;p=deb_libcec.git diff --git a/src/LibCecSharp/LibCecSharp.cpp b/src/LibCecSharp/LibCecSharp.cpp index 97329b3..7f0667a 100644 --- a/src/LibCecSharp/LibCecSharp.cpp +++ b/src/LibCecSharp/LibCecSharp.cpp @@ -235,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();