# HG changeset patch
# User sl
# Date 1417640085 -3600
# Node ID 9a3e776550313356891c73f1493a26a246ee9dc9
# Parent  2044181ade126c244ec9ab52e1dada8767a3035e
Now supporting alternative codes for program guid and properties/info.
diff -r 2044181ade12 -r 9a3e77655031 HumanInterfaceDevice.cs
--- a/HumanInterfaceDevice.cs	Mon Nov 24 18:20:45 2014 +0100
+++ b/HumanInterfaceDevice.cs	Wed Dec 03 21:54:45 2014 +0100
@@ -247,6 +247,16 @@
         public enum ConsumerControl: ushort
         {
             /// 
+            /// Alternative code for properties.
+            /// Also supported by Windows Media Center.
+            /// 
+            MceProperties = 0x000A,
+            /// 
+            /// Alternative code for program guide.
+            /// Also supported by Windows Media Center.
+            /// 
+            MceProgramGuide = 0x0012,
+            /// 
             /// Sent by MCE remotes.
             /// 
             MediaSelectProgramGuide = 0x008D,
diff -r 2044181ade12 -r 9a3e77655031 RemoteControlDevice.cs
--- a/RemoteControlDevice.cs	Mon Nov 24 18:20:45 2014 +0100
+++ b/RemoteControlDevice.cs	Wed Dec 03 21:54:45 2014 +0100
@@ -331,15 +331,15 @@
                 if (this.ButtonPressed != null)
                 {
                     RemoteControlButton button=RemoteControlButton.Unknown;
-                    if (aUsage== (ushort)ConsumerControl.AppCtrlProperties)
+                    if (aUsage == (ushort)ConsumerControl.AppCtrlProperties || aUsage == (ushort)ConsumerControl.MceProperties)
                     {
                         button = RemoteControlButton.MoreInfo;
                     }
-                    else if (aUsage==(ushort)ConsumerControl.AppCtrlPrint)
+                    else if (aUsage == (ushort)ConsumerControl.AppCtrlPrint)
                     {
                         button = RemoteControlButton.Print;
                     }
-                    else if (aUsage==(ushort)ConsumerControl.MediaSelectProgramGuide)
+                    else if (aUsage == (ushort)ConsumerControl.MediaSelectProgramGuide || aUsage == (ushort)ConsumerControl.MceProgramGuide)
                     {
                         button = RemoteControlButton.Guide;
                     }