Cast fix and moving Win32 stuff in a dedicated file.
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
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
191 public enum HpMceButton: ushort
194 /// Displays visual imagery that is synchronized to the sound of your music tracks.
196 /// Second press action: Repeats message.
200 /// Notably sent by the 'Visualization' button of HP Windows Media Center Remote (TSGH-IR08).
202 /// According to HP specs it displays visual imagery that is synchronized to the sound of your music tracks.
204 Visualization = MceButton.Ext0,
206 /// Plays a slide show of all the pictures on your hard disk drive.
208 /// Second press action: Repeats message.
212 /// Notably sent by the 'Slide Show' button of HP Windows Media Center Remote (TSGH-IR08).
214 /// According to HP specs it plays a slide show of all the pictures on your hard disk drive.
216 SlideShow = MceButton.Ext1,
218 /// Eject optical drive.
220 /// Second press action: Repeats message.
224 /// Notably sent by the 'Eject' button of HP Windows Media Center Remote (TSGH-IR08).
225 /// Also interpreted as 'Eject' action by SoundGraph iMON Manager in MCE mode (OrigenAE VF310).
227 Eject = MceButton.Ext2,
229 /// Not sure what this should do.
231 /// Second press action: Repeats message.
235 /// Notably sent by the 'Input selection' button of HP Windows Media Center Remote (TSGH-IR08).
237 InputSelection = MceButton.Ext3,
241 /// Usage Table for Consumer Controls
244 public enum ConsumerControl: ushort
247 /// Sent by MCE remotes.
249 MediaSelectProgramGuide = 0x008D,
251 /// Sent by MCE remotes.
253 AppCtrlPrint = 0x0208,
255 /// Sent by MCE remotes from the 'I' Informations or More Info buttons.
257 AppCtrlProperties = 0x0209