Now supporting alternative codes for program guid and properties/info.
1.1 --- a/HumanInterfaceDevice.cs Mon Nov 24 18:20:45 2014 +0100
1.2 +++ b/HumanInterfaceDevice.cs Wed Dec 03 21:54:45 2014 +0100
1.3 @@ -247,6 +247,16 @@
1.4 public enum ConsumerControl: ushort
1.5 {
1.6 /// <summary>
1.7 + /// Alternative code for properties.
1.8 + /// Also supported by Windows Media Center.
1.9 + /// </summary>
1.10 + MceProperties = 0x000A,
1.11 + /// <summary>
1.12 + /// Alternative code for program guide.
1.13 + /// Also supported by Windows Media Center.
1.14 + /// </summary>
1.15 + MceProgramGuide = 0x0012,
1.16 + /// <summary>
1.17 /// Sent by MCE remotes.
1.18 /// </summary>
1.19 MediaSelectProgramGuide = 0x008D,
2.1 --- a/RemoteControlDevice.cs Mon Nov 24 18:20:45 2014 +0100
2.2 +++ b/RemoteControlDevice.cs Wed Dec 03 21:54:45 2014 +0100
2.3 @@ -331,15 +331,15 @@
2.4 if (this.ButtonPressed != null)
2.5 {
2.6 RemoteControlButton button=RemoteControlButton.Unknown;
2.7 - if (aUsage== (ushort)ConsumerControl.AppCtrlProperties)
2.8 + if (aUsage == (ushort)ConsumerControl.AppCtrlProperties || aUsage == (ushort)ConsumerControl.MceProperties)
2.9 {
2.10 button = RemoteControlButton.MoreInfo;
2.11 }
2.12 - else if (aUsage==(ushort)ConsumerControl.AppCtrlPrint)
2.13 + else if (aUsage == (ushort)ConsumerControl.AppCtrlPrint)
2.14 {
2.15 button = RemoteControlButton.Print;
2.16 }
2.17 - else if (aUsage==(ushort)ConsumerControl.MediaSelectProgramGuide)
2.18 + else if (aUsage == (ushort)ConsumerControl.MediaSelectProgramGuide || aUsage == (ushort)ConsumerControl.MceProgramGuide)
2.19 {
2.20 button = RemoteControlButton.Guide;
2.21 }