Adding docs for some MCE buttons.
Adding HP MCE button extension mapping and docs.
1.1 --- a/Form1.cs Tue Nov 04 22:11:01 2014 +0100
1.2 +++ b/Form1.cs Wed Nov 05 10:19:02 2014 +0100
1.3 @@ -129,7 +129,14 @@
1.4 }
1.5 else if (e.MceButton != MceButton.Null)
1.6 {
1.7 + //Display MCE button name
1.8 label1.Text = e.MceButton.ToString();
1.9 + //Check if this is an HP extension
1.10 + if (Enum.IsDefined(typeof(HpMceButton), (int)e.MceButton))
1.11 + {
1.12 + //Also display HP button name
1.13 + label1.Text += " / HP:" + ((HpMceButton)e.MceButton).ToString();
1.14 + }
1.15 }
1.16 else
1.17 {
2.1 --- a/RemoteControlDevice.cs Tue Nov 04 22:11:01 2014 +0100
2.2 +++ b/RemoteControlDevice.cs Wed Nov 05 10:19:02 2014 +0100
2.3 @@ -74,7 +74,10 @@
2.4 /// </summary>
2.5 public enum MceButton
2.6 {
2.7 - Null = 0x00, //Not defined by the specs
2.8 + /// <summary>
2.9 + /// Not defined by the Microsoft specs.
2.10 + /// </summary>
2.11 + Null = 0x00,
2.12 GreenStart = 0x0D,
2.13 ClosedCaptioning = 0x2B,
2.14 Teletext = 0x5A,
2.15 @@ -94,11 +97,63 @@
2.16 DvdAngle = 0x4B,
2.17 DvdAudio = 0x4C,
2.18 DvdSubtitle = 0x4D,
2.19 + /// <summary>
2.20 + /// First press action: Ejects a DVD drive.
2.21 + /// <para />
2.22 + /// Second press action: Repeats first press action.
2.23 + /// <para />
2.24 + /// Notably issued by XBOX360 remote as defined in irplus - Remote Control - Android application.
2.25 + /// </summary>
2.26 Eject = 0x28,
2.27 DvdTopMenu = 0x43,
2.28 + /// <summary>
2.29 + /// First press action: Generates EXTn HID message in the Media Center Vendor Specific
2.30 + /// Collection (page 0xFFBC, usage 0x88).
2.31 + /// <para />
2.32 + /// Second press action: Repeats message.
2.33 + /// <para />
2.34 + /// Auto-repeat: No
2.35 + /// <para />
2.36 + /// Notably sent by the 'Visualization' button of HP Windows Media Center Remote (TSGH-IR08).
2.37 + /// <para />
2.38 + /// According to HP specs it displays visual imagery that is synchronized to the sound of your music tracks.
2.39 + /// </summary>
2.40 Ext0 = 0x32,
2.41 + /// <summary>
2.42 + /// First press action: Generates EXTn HID message in the Media Center Vendor Specific
2.43 + /// Collection (page 0xFFBC, usage 0x88).
2.44 + /// <para />
2.45 + /// Second press action: Repeats message.
2.46 + /// <para />
2.47 + /// Auto-repeat: No
2.48 + /// <para />
2.49 + /// Notably sent by the 'Slide Show' button of HP Windows Media Center Remote (TSGH-IR08).
2.50 + /// <para />
2.51 + /// According to HP specs it plays a slide show of all the pictures on your hard disk drive.
2.52 + /// </summary>
2.53 Ext1 = 0x33,
2.54 + /// <summary>
2.55 + /// First press action: Generates EXTn HID message in the Media Center Vendor Specific
2.56 + /// Collection (page 0xFFBC, usage 0x88).
2.57 + /// <para />
2.58 + /// Second press action: Repeats message.
2.59 + /// <para />
2.60 + /// Auto-repeat: No
2.61 + /// <para />
2.62 + /// Notably sent by the 'Eject' button of HP Windows Media Center Remote (TSGH-IR08).
2.63 + /// Also interpreted as 'Eject' action by SoundGraph iMON Manager in MCE mode (OrigenAE VF310).
2.64 + /// </summary>
2.65 Ext2 = 0x34,
2.66 + /// <summary>
2.67 + /// First press action: Generates EXTn HID message in the Media Center Vendor Specific
2.68 + /// Collection (page 0xFFBC, usage 0x88).
2.69 + /// <para />
2.70 + /// Second press action: Repeats message.
2.71 + /// <para />
2.72 + /// Auto-repeat: No
2.73 + /// <para />
2.74 + /// Notably sent by the 'Input selection' button of HP Windows Media Center Remote (TSGH-IR08).
2.75 + /// </summary>
2.76 Ext3 = 0x35,
2.77 Ext4 = 0x36,
2.78 Ext5 = 0x37,
2.79 @@ -114,7 +169,26 @@
2.80 Channel10 = 0x3E,
2.81 Channel11 = 0x3F,
2.82 Channel12 = 0x40,
2.83 + /// <summary>
2.84 + /// First press action: Generates OEM2 HID message in the Media Center Vendor Specific
2.85 + /// Collection. This button is intended to control the front panel display of home entertainment
2.86 + /// computers. When this button is pressed, the display could be turned on or off, or the display
2.87 + /// mode could change.
2.88 + /// <para />
2.89 + /// Second press action: Repeats message.
2.90 + /// <para />
2.91 + /// Auto-repeat: No
2.92 + /// <para />
2.93 + /// Notably issued by XBOX360 remote as defined in irplus - Remote Control - Android application.
2.94 + /// </summary>
2.95 Display = 0x4F,
2.96 + /// <summary>
2.97 + /// First press action: To be determined.
2.98 + /// <para />
2.99 + /// Second press action: Repeats message.
2.100 + /// <para />
2.101 + /// Auto-repeat: No
2.102 + /// </summary>
2.103 Kiosk = 0x6A,
2.104 NetworkSelection = 0x2C,
2.105 BlueRayTool = 0x78,
2.106 @@ -122,6 +196,56 @@
2.107 VideoSelection = 0x61
2.108 }
2.109
2.110 + public enum HpMceButton
2.111 + {
2.112 + /// <summary>
2.113 + /// Displays visual imagery that is synchronized to the sound of your music tracks.
2.114 + /// <para />
2.115 + /// Second press action: Repeats message.
2.116 + /// <para />
2.117 + /// Auto-repeat: No
2.118 + /// <para />
2.119 + /// Notably sent by the 'Visualization' button of HP Windows Media Center Remote (TSGH-IR08).
2.120 + /// <para />
2.121 + /// According to HP specs it displays visual imagery that is synchronized to the sound of your music tracks.
2.122 + /// </summary>
2.123 + Visualization = MceButton.Ext0,
2.124 + /// <summary>
2.125 + /// Plays a slide show of all the pictures on your hard disk drive.
2.126 + /// <para />
2.127 + /// Second press action: Repeats message.
2.128 + /// <para />
2.129 + /// Auto-repeat: No
2.130 + /// <para />
2.131 + /// Notably sent by the 'Slide Show' button of HP Windows Media Center Remote (TSGH-IR08).
2.132 + /// <para />
2.133 + /// According to HP specs it plays a slide show of all the pictures on your hard disk drive.
2.134 + /// </summary>
2.135 + SlideShow = MceButton.Ext1,
2.136 + /// <summary>
2.137 + /// Eject optical drive.
2.138 + /// <para />
2.139 + /// Second press action: Repeats message.
2.140 + /// <para />
2.141 + /// Auto-repeat: No
2.142 + /// <para />
2.143 + /// Notably sent by the 'Eject' button of HP Windows Media Center Remote (TSGH-IR08).
2.144 + /// Also interpreted as 'Eject' action by SoundGraph iMON Manager in MCE mode (OrigenAE VF310).
2.145 + /// </summary>
2.146 + Eject = MceButton.Ext2,
2.147 + /// <summary>
2.148 + /// Not sure what this should do.
2.149 + /// <para />
2.150 + /// Second press action: Repeats message.
2.151 + /// <para />
2.152 + /// Auto-repeat: No
2.153 + /// <para />
2.154 + /// Notably sent by the 'Input selection' button of HP Windows Media Center Remote (TSGH-IR08).
2.155 + /// </summary>
2.156 + InputSelection = MceButton.Ext3,
2.157 + }
2.158 +
2.159 +
2.160
2.161 #region RemoteControlEventArgs
2.162