More code consoludation. Supporting multiple HID input per message.
8 /// From USB HID usage tables.
9 /// http://www.usb.org/developers/hidpage#HID_Usage
10 /// http://www.usb.org/developers/devclass_docs/Hut1_12v2.pdf
12 public enum UsagePage : ushort
15 GenericDesktopControl,
17 VirtualRealityControl,
28 PhysicalInterfaceDevice = 0x0f,
30 AlphaNumericDisplay = 0x14,
31 MedicalInstruments = 0x40,
40 BarCodeScanner = 0x8c,
46 // http://msdn.microsoft.com/en-us/library/windows/desktop/bb417079.aspx
48 TerraTecRemote = 0xffcc
54 public enum UsageId: ushort
56 MceRemoteUsage = 0x88,
57 ConsumerControl = 0x01
67 public enum MceButton: ushort
70 /// Not defined by the Microsoft specs.
74 ClosedCaptioning = 0x2B,
78 TeletextYellow = 0x5D,
93 /// First press action: Ejects a DVD drive.
95 /// Second press action: Repeats first press action.
97 /// Notably issued by XBOX360 remote as defined in irplus - Remote Control - Android application.
102 /// First press action: Generates EXTn HID message in the Media Center Vendor Specific
103 /// Collection (page 0xFFBC, usage 0x88).
105 /// Second press action: Repeats message.
109 /// Notably sent by the 'Visualization' button of HP Windows Media Center Remote (TSGH-IR08).
111 /// According to HP specs it displays visual imagery that is synchronized to the sound of your music tracks.
115 /// First press action: Generates EXTn HID message in the Media Center Vendor Specific
116 /// Collection (page 0xFFBC, usage 0x88).
118 /// Second press action: Repeats message.
122 /// Notably sent by the 'Slide Show' button of HP Windows Media Center Remote (TSGH-IR08).
124 /// According to HP specs it plays a slide show of all the pictures on your hard disk drive.
128 /// First press action: Generates EXTn HID message in the Media Center Vendor Specific
129 /// Collection (page 0xFFBC, usage 0x88).
131 /// Second press action: Repeats message.
135 /// Notably sent by the 'Eject' button of HP Windows Media Center Remote (TSGH-IR08).
136 /// Also interpreted as 'Eject' action by SoundGraph iMON Manager in MCE mode (OrigenAE VF310).
140 /// First press action: Generates EXTn HID message in the Media Center Vendor Specific
141 /// Collection (page 0xFFBC, usage 0x88).
143 /// Second press action: Repeats message.
147 /// Notably sent by the 'Input selection' button of HP Windows Media Center Remote (TSGH-IR08).
165 /// First press action: Generates OEM2 HID message in the Media Center Vendor Specific
166 /// Collection. This button is intended to control the front panel display of home entertainment
167 /// computers. When this button is pressed, the display could be turned on or off, or the display
168 /// mode could change.
170 /// Second press action: Repeats message.
174 /// Notably issued by XBOX360 remote as defined in irplus - Remote Control - Android application.
178 /// First press action: To be determined.
180 /// Second press action: Repeats message.
185 NetworkSelection = 0x2C,
188 VideoSelection = 0x61
192 /// Those codes come from experimenting with HP remotes.
194 public enum HpMceButton: ushort
197 /// Displays visual imagery that is synchronized to the sound of your music tracks.
199 /// Second press action: Repeats message.
203 /// Notably sent by the 'Visualization' button of HP Windows Media Center Remote (TSGH-IR08).
205 /// According to HP specs it displays visual imagery that is synchronized to the sound of your music tracks.
207 Visualization = MceButton.Ext0,
209 /// Plays a slide show of all the pictures on your hard disk drive.
211 /// Second press action: Repeats message.
215 /// Notably sent by the 'Slide Show' button of HP Windows Media Center Remote (TSGH-IR08).
217 /// According to HP specs it plays a slide show of all the pictures on your hard disk drive.
219 SlideShow = MceButton.Ext1,
221 /// Eject optical drive.
223 /// Second press action: Repeats message.
227 /// Notably sent by the 'Eject' button of HP Windows Media Center Remote (TSGH-IR08).
228 /// Also interpreted as 'Eject' action by SoundGraph iMON Manager in MCE mode (OrigenAE VF310).
230 Eject = MceButton.Ext2,
232 /// Not sure what this should do.
234 /// Second press action: Repeats message.
238 /// Notably sent by the 'Input selection' button of HP Windows Media Center Remote (TSGH-IR08).
240 InputSelection = MceButton.Ext3,
244 /// Usage Table for Consumer Controls
247 public enum ConsumerControl: ushort
250 /// Sent by MCE remotes.
252 MediaSelectProgramGuide = 0x008D,
254 /// Sent by MCE remotes.
256 AppCtrlPrint = 0x0208,
258 /// Sent by MCE remotes from the 'I' Informations or More Info buttons.
260 AppCtrlProperties = 0x0209