2 #include "protocols/mceprotocol.h"
4 MCERemote1::MCERemote1(
7 "Windows MCE Remote 1",
11 addControlledDevice(Microsoft_Make, "Windows PC ASRock HT330", Computer_Device);
15 void MCERemote1::populateProtocol(
18 if (threadableProtocol)
20 // If the pointer is not null, the keyset must already be populated.
24 threadableProtocol = new MCEProtocol(guiObject, index, 0x800F);
28 addKey("Zero", Zero_Key, 0x00, 8);
29 addKey("One", One_Key, 0x01, 8);
30 addKey("Two", Two_Key, 0x02, 8);
31 addKey("Three", Three_Key, 0x03, 8);
32 addKey("Four", Four_Key, 0x04, 8);
33 addKey("Five", Five_Key, 0x05, 8);
34 addKey("Six", Six_Key, 0x06, 8);
35 addKey("Seven", Seven_Key, 0x07, 8);
36 addKey("Eight", Eight_Key, 0x08, 8);
37 addKey("Nine", Nine_Key, 0x09, 8);
38 addKey("Clear", Clear_Key, 0x0A, 8);
39 addKey("Enter", Enter_Key, 0x0B, 8);
41 addKey("Power", Power_Key, 0x0C, 8);
42 addKey("Home", Menu_Key, 0x0D, 8);
43 addKey("Mute", Mute_Key, 0x0E, 8);
44 addKey("MoreInfo", Info_Key, 0x0F, 8);
45 addKey("VolUp", VolumeUp_Key, 0x10, 8);
46 addKey("VolDown", VolumeDown_Key, 0x11, 8);
47 addKey("ChanUp", ChannelUp_Key, 0x12, 8);
48 addKey("ChanDown", ChannelDown_Key, 0x13, 8);
50 addKey("Forward", FastForward_Key, 0x14, 8);
51 addKey("Rewind", Rewind_Key, 0x15, 8);
52 addKey("Play", Play_Key, 0x16, 8);
53 addKey("Record", Record_Key, 0x17, 8);
54 addKey("Pause", Pause_Key, 0x18, 8);
55 addKey("Stop", Stop_Key, 0x19, 8);
56 addKey("Skip", Advance_Key, 0x1A, 8); // next?
57 addKey("Replay", Replay_Key, 0x1B, 8); // previous?
59 addKey("Hash", Unmapped_Key, 0x1C, 8); // "Caps Lock"
60 addKey("Star", Unmapped_Key, 0x1D, 8); // "Mouse"
62 addKey("Up", Up_Key, 0x1E, 8);
63 addKey("Down", Down_Key, 0x1F, 8);
64 addKey("Left", Left_Key, 0x20, 8);
65 addKey("Right", Right_Key, 0x21, 8);
66 addKey("OK", Select_Key, 0x22, 8);
67 addKey("Back", Exit_Key, 0x23, 8);
68 addKey("DVD", DiscMenu_Key, 0x24, 8);
69 addKey("LiveTV", LiveTV_Key, 0x25, 8);
70 addKey("Guide", Guide_Key, 0x26, 8);
72 addKey("Aspect", AspectRatio_Key, 0x27, 8);
74 addKey("Visualization", Unmapped_Key, 0x32, 8);
75 addKey("SlideShow", Unmapped_Key, 0x33, 8);
76 addKey("Eject", Eject_Key, 0x34, 8);
78 addKey("TV", Unmapped_Key, 0x46, 8); // "My TV"
79 addKey("Music", Unmapped_Key, 0x47, 8); // "My Music"
80 addKey("RecTV", Unmapped_Key, 0x48, 8); // "Recorded TV"
81 addKey("Pictures", Unmapped_Key, 0x49, 8); // "My Pictures"
82 addKey("Videos", Unmapped_Key, 0x4A, 8); // "My Videos"
83 addKey("DVD angle", Angle_Key, 0x4B, 8);
84 addKey("DVD audio", Audio_Key, 0x4C, 8);
85 addKey("DVD subtitle", Captions_Key, 0x4D, 8);
86 addKey("Print", Unmapped_Key, 0x4E, 8);
88 addKey("Radio", TunerInput_Key, 0x50, 8);
89 addKey("title", DiscTitle_Key, 0x51, 8);
90 addKey("Teletext", Teletext_Key, 0x5A, 8);
91 addKey("Red", Red_Key, 0x5B, 8);
92 addKey("Green", Green_Key, 0x5C, 8);
93 addKey("Yellow", Yellow_Key, 0x5D, 8);
94 addKey("Blue", Blue_Key, 0x5E, 8);
96 // addKey("PlayPause", Play_Key, 0x6E, 8);
97 // addKey("PlayPause", Pause_Key, 0x6E, 8);
99 addKey("Media", Unmapped_Key, 0x80, 8); // "Write"
103 MCERemote1a::MCERemote1a(
107 setKeysetName("Windows MCE Remote 2");
111 void MCERemote1a::populateProtocol(
114 if (threadableProtocol)
116 // If the pointer is not null, the keyset must already be populated.
120 MCERemote1::populateProtocol(guiObject);
126 MCERemote1b::MCERemote1b(
130 setKeysetName("Windows MCE Remote 3");
134 void MCERemote1b::populateProtocol(
137 if (threadableProtocol)
139 // If the pointer is not null, the keyset must already be populated.
143 MCERemote1::populateProtocol(guiObject);
149 MCERemote1c::MCERemote1c(
153 setKeysetName("Windows MCE Remote 4");
157 void MCERemote1c::populateProtocol(
160 if (threadableProtocol)
162 // If the pointer is not null, the keyset must already be populated.
166 MCERemote1::populateProtocol(guiObject);
172 MCERemote1d::MCERemote1d(
176 setKeysetName("Windows MCE Remote 5");
180 void MCERemote1d::populateProtocol(
183 if (threadableProtocol)
185 // If the pointer is not null, the keyset must already be populated.
189 MCERemote1::populateProtocol(guiObject);
195 MCERemote1e::MCERemote1e(
199 setKeysetName("Windows MCE Remote 6");
203 void MCERemote1e::populateProtocol(
206 if (threadableProtocol)
208 // If the pointer is not null, the keyset must already be populated.
212 MCERemote1::populateProtocol(guiObject);
218 MCERemote1f::MCERemote1f(
222 setKeysetName("Windows MCE Remote 7");
226 void MCERemote1f::populateProtocol(
229 if (threadableProtocol)
231 // If the pointer is not null, the keyset must already be populated.
235 MCERemote1::populateProtocol(guiObject);
241 MCERemote1g::MCERemote1g(
245 setKeysetName("Windows MCE Remote 8");
249 void MCERemote1g::populateProtocol(
252 if (threadableProtocol)
254 // If the pointer is not null, the keyset must already be populated.
258 MCERemote1::populateProtocol(guiObject);
264 MCEXboxRemote1::MCEXboxRemote1(
268 setKeysetName("XBox 360 Remote 1");
272 void MCEXboxRemote1::populateProtocol(
275 if (threadableProtocol)
277 // Keyset already populated.
281 MCERemote1g::populateProtocol(guiObject);
283 addKey("A", Green_Key, 0x12, 8);
284 addKey("X", Blue_Key, 0x13, 8);
285 addKey("B", Red_Key, 0x25, 8);
286 addKey("Y", Yellow_Key, 0x26, 8);