2 #include "protocols/necprotocol.h"
3 #include "protocols/necxprotocol.h"
4 #include "protocols/rc5protocol.h"
13 addControlledDevice(LG_Make, "32LC56", TV_Device);
14 addControlledDevice(LG_Make, "32LH301C", TV_Device);
15 addControlledDevice(LG_Make, "50PS3000", TV_Device);
16 addControlledDevice(LG_Make, "FLATRON M227WDP", TV_Device);
17 addControlledDevice(LG_Make, "FLATRON M2280DF", TV_Device);
21 void LGTV1::populateProtocol(
24 if (threadableProtocol)
26 // If the pointer is not null, the keyset must already be populated.
30 threadableProtocol = new NECProtocol(guiObject, index, false, true);
31 threadableProtocol->setMinimumRepetitions(1);
35 addKey("p+", ChannelUp_Key, 0x00, 8);
36 addKey("p-", ChannelDown_Key, 0x01, 8);
37 addKey("vol+", VolumeUp_Key, 0x02, 8);
38 addKey("vol-", VolumeDown_Key, 0x03, 8);
39 addKey("right", Right_Key, 0x06, 8);
40 addKey("left", Left_Key, 0x07, 8);
41 addKey("power", Power_Key, 0x08, 8);
42 addKey("mute", Mute_Key, 0x09, 8);
43 addKey("sap", Audio_Key, 0x0A, 8); // "I/II", "tv/av"
44 addKey("input", Input_Key, 0x0B, 8);
45 addKey("picture", PictureMode_Key, 0x0C, 8);
46 addKey("sound", SoundMode_Key, 0x0D, 8);
47 addKey("sleep", Sleep_Key, 0x0E, 8);
48 addKey("TvVideo", Unmapped_Key, 0x0F, 8);
49 addKey("0", Zero_Key, 0x10, 8);
50 addKey("1", One_Key, 0x11, 8);
51 addKey("2", Two_Key, 0x12, 8);
52 addKey("3", Three_Key, 0x13, 8);
53 addKey("4", Four_Key, 0x14, 8);
54 addKey("5", Five_Key, 0x15, 8);
55 addKey("6", Six_Key, 0x16, 8);
56 addKey("7", Seven_Key, 0x17, 8);
57 addKey("8", Eight_Key, 0x18, 8);
58 addKey("9", Nine_Key, 0x19, 8);
59 addKey("qview", PrevChannel_Key, 0x1A, 8); // "review", "ChannelPrev"
60 addKey("fav", Favorites_Key, 0x1E, 8);
61 addKey("text", Teletext_Key, 0x20, 8);
62 addKey("topt", Unmapped_Key, 0x21, 8); // "topt/rev", "t.opt"
63 addKey("MIX", TeletextAndTV_Key, 0x24, 8);
64 addKey("TIME", TeletextTime_Key, 0x26, 8);
65 addKey("INDEX", TeletextIndex_Key, 0x27, 8);
66 addKey("return/exit", Exit_Key, 0x28, 8);
67 addKey("reveal", TeletextReveal_Key, 0x2A, 8);
68 addKey("avmode", Unmapped_Key, 0x30, 8); // "UPDATE"
69 addKey("subtitle", Captions_Key, 0x39, 8); // "cc", "subtitle/ffw"
70 addKey("up", Up_Key, 0x40, 8);
71 addKey("down", Down_Key, 0x41, 8);
72 addKey("menu", Menu_Key, 0x43, 8); // "setup menu", "Home"
73 addKey("ok", Select_Key, 0x44, 8);
74 addKey("qmenu", Unmapped_Key, 0x45, 8);
75 addKey("-", Dash_Key, 0x4C, 8);
76 addKey("video", PictureMode_Key, 0x4D, 8); // "apc", "PSM", "picture mode"
77 addKey("TV/PC", PCInput_Key, 0x50, 8);
78 addKey("AV-2", Unmapped_Key, 0x51, 8);
79 addKey("sound", SoundMode_Key, 0x52, 8); // "SSM", "Select Sound Mode"
80 addKey("list", Unmapped_Key, 0x53, 8);
81 addKey("auto", Unmapped_Key, 0x54, 8);
82 addKey("memory/erase", Memory_Key, 0x55, 8);
83 addKey("av1", CompositeInput_Key, 0x5A, 8);
84 addKey("pip", PIP_Key, 0x60, 8);
85 addKey("blue", Blue_Key, 0x61, 8);
86 addKey("blue/pause", Pause_Key, 0x61, 8);
87 addKey("yellow", Yellow_Key, 0x63, 8);
88 addKey("yellow/play", Play_Key, 0x63, 8);
89 addKey("brt.w", Unmapped_Key, 0x6E, 8);
90 addKey("green", Green_Key, 0x71, 8);
91 addKey("green/stop", Stop_Key, 0x71, 8);
92 addKey("red", Red_Key, 0x72, 8);
93 addKey("ratio", AspectRatio_Key, 0x79, 8);
94 addKey("xstudio", Unmapped_Key, 0x7C, 8);
95 addKey("simplink", Unmapped_Key, 0x7E, 8);
96 addKey("Ratio16:9", Unmapped_Key, 0x88, 8);
97 addKey("Ratio4:3", Unmapped_Key, 0x89, 8);
98 addKey("app/x", Unmapped_Key, 0x90, 8);
99 addKey("ad", Unmapped_Key, 0x91, 8);
100 addKey("energy", Unmapped_Key, 0x95, 8); // "EYEASTERISK"
101 addKey("comp-rgb-dvi", ComponentInput_Key, 0x98, 8);
102 addKey("InputAv1", Unmapped_Key, 0xA5, 8);
103 addKey("info", Info_Key, 0xAA, 8);
104 addKey("guide", Guide_Key, 0xAB, 8);
105 addKey("RatioZoom", Zoom_Key, 0xAF, 8);
106 addKey("rec", Record_Key, 0xBD, 8);
107 addKey("InputComponent1", Unmapped_Key, 0xBF, 8);
108 addKey("PowerOn", PowerOn_Key, 0xC4, 8);
109 addKey("PowerOff", PowerOff_Key, 0xC5, 8);
110 addKey("hdmi", HDMIInput_Key, 0xC6, 8);
111 addKey("InputHDMI2", HDMI2Input_Key, 0xCC, 8);
112 // addKey("InputHDMI1", HDMIInput_Key, 0xCE, 8);
113 addKey("InputAv2", Unmapped_Key, 0xD0, 8);
114 addKey("InputComponent2", Unmapped_Key, 0xD2, 8);
115 addKey("InputRgb-Pc", PCInput_Key, 0xD5, 8);
116 addKey("aerial", AntennaInput_Key, 0xD6, 8);
117 addKey("InputTv", Unmapped_Key, 0xD9, 8);
118 addKey("InputHDMI4", Unmapped_Key, 0xDA, 8);
119 addKey("InputHDMI3", Unmapped_Key, 0xE9, 8);
120 addKey("Auto Demo Mode", Unmapped_Key, 0xED, 8);
121 addKey("tv/radio", TunerInput_Key, 0xF0, 8);
124 addKey("Picture Test Mode", Unmapped_Key, 0xF9, 8);
125 addKey("InStop(FactoryReset)", Unmapped_Key, 0xFA, 8);
126 addKey("InStart", Unmapped_Key, 0xFB, 8);
127 addKey("Password Protected Function", Unmapped_Key, 0xFC, 8);
128 addKey("PowerOnly", Unmapped_Key, 0xFE, 8);
129 addKey("EZadjust", Unmapped_Key, 0xFF, 8);
137 setKeysetName("TV Keyset 1a");
141 void LGTV1a::populateProtocol(
144 if (threadableProtocol)
146 // If the pointer is not null, the keyset must already be populated.
150 LGTV1::populateProtocol(guiObject);
152 addKey("*", Unmapped_Key, 0x39, 8);
153 addKey("exit", Exit_Key, 0x5B, 8);
154 // addKey("pop", Unmapped_Key, 0x61, 8);
155 addKey("pipinput", PIPSource_Key, 0x61, 8);
156 addKey("swap", PIPSwap_Key, 0x63, 8);
157 addKey("freeze", PIPPause_Key, 0x65, 8);
158 addKey("pipch+", PIPChannelUp_Key, 0x71, 8);
159 addKey("pipch-", PIPChannelDown_Key, 0x72, 8);
160 addKey("zoom", Zoom_Key, 0x7B, 8);
161 addKey("signal", Unmapped_Key, 0x96, 8);
162 addKey("adjust", Unmapped_Key, 0xCB, 8);
170 setKeysetName("TV Keyset 1b");
174 void LGTV1b::populateProtocol(
177 if (threadableProtocol)
179 // If the pointer is not null, the keyset must already be populated.
183 LGTV1::populateProtocol(guiObject);
185 addKey("PR+/Up_Arrow", Up_Key, 0x00, 8);
186 addKey("PR-/Down_Arrow", Down_Key, 0x01, 8);
187 addKey("Vol+/Right_Arrow", Right_Key, 0x02, 8);
188 addKey("Vol-/Left_Arrow", Left_Key, 0x03, 8);
189 addKey("orange", Red_Key, 0xC0, 8);
190 addKey("yellow", Yellow_Key, 0xC1, 8);
191 addKey("blue", Blue_Key, 0xC2, 8);
192 addKey("green", Green_Key, 0xC3, 8);
200 setKeysetName("TV Keyset 1c");
202 addControlledDevice(LG_Make, "55LW9500", TV_Device);
203 addControlledDevice(LG_Make, "60PX950", TV_Device);
204 addControlledDevice(LG_Make, "60PG60", TV_Device);
208 void LGTV1c::populateProtocol(
211 if (threadableProtocol)
213 // If the pointer is not null, the keyset must already be populated.
217 LGTV1::populateProtocol(guiObject);
219 // addKey("Mark", Unmapped_Key, 0x1E, 8); // This is probably an error
220 // addKey("3DOption", Unmapped_Key, 0x45, 8); // also probably error
221 // addKey("List", Unmapped_Key, 0x4C, 8); // also odd
222 addKey("info", Info_Key, 0x55, 8);
223 addKey("Premium", Unmapped_Key, 0x56, 8);
224 addKey("WIDGETS", Unmapped_Key, 0x58, 8);
225 addKey("exit", Exit_Key, 0x5B, 8); // "Return"
226 addKey("forward", FastForward_Key, 0x8E, 8);
227 addKey("backward", Rewind_Key, 0x8F, 8);
228 addKey("netcast", Unmapped_Key, 0xA9, 8);
229 addKey("play", Play_Key, 0xB0, 8);
230 addKey("stop", Stop_Key, 0xB1, 8);
231 addKey("pause", Pause_Key, 0xBA, 8); // "Freeze"
232 addKey("rec", Record_Key, 0xBD, 8);
233 addKey("3D", Unmapped_Key, 0xDC, 8);
247 void LGTV2::populateProtocol(
250 if (threadableProtocol)
252 // If the pointer is not null, the keyset must already be populated.
256 threadableProtocol = new RC5Protocol(guiObject, index, 0x40);
258 addKey("0", Zero_Key, 0x00, 6);
259 addKey("1", One_Key, 0x01, 6);
260 addKey("2", Two_Key, 0x02, 6);
261 addKey("3", Three_Key, 0x03, 6);
262 addKey("4", Four_Key, 0x04, 6);
263 addKey("5", Five_Key, 0x05, 6);
264 addKey("6", Six_Key, 0x06, 6);
265 addKey("7", Seven_Key, 0x07, 6);
266 addKey("8", Eight_Key, 0x08, 6);
267 addKey("9", Nine_Key, 0x09, 6);
268 addKey("POWER", Power_Key, 0x0C, 6);
269 addKey("MUTE", Mute_Key, 0x0D, 6);
270 addKey("PSM", PictureMode_Key, 0x0E, 6); // preset picture
271 addKey("LIST", Unmapped_Key, 0x0F, 6);
272 addKey("VOLUP", VolumeUp_Key, 0x10, 6);
273 addKey("VOLDOWN", VolumeDown_Key, 0x11, 6);
274 addKey("EYE", Unmapped_Key, 0x12, 6);
275 addKey("TURBOPICTURE", Unmapped_Key, 0x13, 6);
276 addKey("DRP", Unmapped_Key, 0x14, 6);
277 addKey("KEY_MEDIA", Unmapped_Key, 0x15, 6);
278 addKey("SSM", SoundMode_Key, 0x16, 6); // preset sound
279 addKey("PROGUP", ChannelUp_Key, 0x20, 6);
280 addKey("PROGDOWN", ChannelDown_Key, 0x21, 6);
281 addKey("I-II", Audio_Key, 0x23, 6);
282 addKey("TURBOSOUND", Unmapped_Key, 0x24, 6);
283 addKey("OK", Select_Key, 0x25, 6);
284 addKey("STILL", TeletextHold_Key, 0x29, 6); // "KEY_PAUSE", "HOLD"
285 addKey("TIME", TeletextTime_Key, 0x2A, 6);
286 addKey("SIZE", TeletextSize_Key, 0x2B, 6); // "KEY_SAVE"
287 addKey("REVEAL", TeletextReveal_Key, 0x2C, 6); // "KEY_REDO"
288 addKey("POS", PIPMove_Key, 0x2D, 6); // position, "UPDATE"
289 addKey("MIX", TeletextAndTV_Key, 0x2E, 6); // "KEY_MAX"
290 addKey("SWAP", PIPSwap_Key, 0x32, 6);
291 addKey("ARC", AspectRatio_Key, 0x33, 6);
292 addKey("INPUT", Input_Key, 0x34, 6);
293 addKey("2-12PIP", Unmapped_Key, 0x35, 6); // strobe, "KEY_SHOP"
294 addKey("PR-PLUS", Unmapped_Key, 0x36, 6);
295 addKey("PR-MINUS", Unmapped_Key, 0x37, 6);
296 addKey("TVAV", Unmapped_Key, 0x38, 6);
297 addKey("PIP", PIP_Key, 0x3A, 6);
298 addKey("MENU", Menu_Key, 0x3B, 6);
299 addKey("TEXT", Teletext_Key, 0x3C, 6);
300 addKey("SLEEP", Sleep_Key, 0x3E, 6);
308 setKeysetName("TV Keyset 2a");
312 void LGTV2a::populateProtocol(
315 if (threadableProtocol)
317 // If the pointer is not null, the keyset must already be populated.
321 LGTV2::populateProtocol(guiObject);
323 addKey("KEY_YELLOW", Yellow_Key, 0x32, 6);
324 addKey("KEY_BLUE", Blue_Key, 0x34, 6);
325 addKey("KEY_GREEN", Green_Key, 0x36, 6);
326 addKey("KEY_RED", Red_Key, 0x37, 6);
334 setKeysetName("TV Keyset 2b");
338 void LGTV2b::populateProtocol(
341 if (threadableProtocol)
343 // If the pointer is not null, the keyset must already be populated.
347 LGTV2::populateProtocol(guiObject);
349 addKey("sleep", Sleep_Key, 0x26, 6); // might need separate class
350 addKey("Q.VIEW", Unmapped_Key, 0x32, 6);
351 addKey("LIST", Unmapped_Key, 0x34, 6);
352 addKey("I/II/*", Audio_Key, 0x36, 6);
353 addKey("EYE/*", Unmapped_Key, 0x37, 6);
367 void LGDisc1::populateProtocol(
370 if (threadableProtocol)
372 // If the pointer is not null, the keyset must already be populated.
376 threadableProtocol = new NECXProtocol(guiObject, index, true);
378 setPreData(0x2C2C, 16);
380 addKey("cd-dvd", Unmapped_Key, 0x03, 8);
381 addKey("play", Play_Key, 0x04, 8);
382 addKey("stop", Stop_Key, 0x05, 8);
383 addKey("<<<", Unmapped_Key, 0x06, 8);
384 addKey(">>>", Unmapped_Key, 0x07, 8);
385 addKey("aux", AuxInput_Key, 0x09, 8);
386 addKey("minus", Unmapped_Key, 0x12, 8); // "pr_preset_down"
387 addKey("plus", Unmapped_Key, 0x13, 8); // "pr_preset_up"
388 addKey("volume-", VolumeDown_Key, 0x16, 8);
389 addKey("volume+", VolumeUp_Key, 0x17, 8);
390 addKey("power", Power_Key, 0x1E, 8);
391 addKey("mute", Mute_Key, 0x1F, 16);
392 addKey("pty-search", Unmapped_Key, 0x39, 8);
393 addKey("1", One_Key, 0x41, 8);
394 addKey("2", Two_Key, 0x42, 8);
395 addKey("3", Three_Key, 0x43, 8);
396 addKey("4", Four_Key, 0x44, 8);
397 addKey("5", Five_Key, 0x45, 8);
398 addKey("6", Six_Key, 0x46, 8);
399 addKey("7", Seven_Key, 0x47, 8);
400 addKey("8", Eight_Key, 0x48, 8);
401 addKey("9", Nine_Key, 0x49, 8);
402 addKey("0", Zero_Key, 0x4B, 8);
403 addKey("program", Program_Key, 0x4D, 8);
404 addKey("repeat", Repeat_Key, 0x4E, 8);
405 addKey("pause", Pause_Key, 0x4F, 8);
406 addKey("band", FM_Key, 0x59, 8); // This is a hack
407 addKey("band", AM_Key, 0x59, 8); // This too
408 addKey("dimmer", Unmapped_Key, 0x5E, 8);
409 addKey("rds", Unmapped_Key, 0x60, 8);
410 addKey("exit_cancel", Unmapped_Key, 0x69, 8);
411 addKey("caption", Captions_Key, 0x6A, 8);
412 addKey("guide", Guide_Key, 0x6B, 8);
413 addKey("pty", Unmapped_Key, 0x71, 8);
414 addKey("i_ii", Unmapped_Key, 0x7A, 8);
415 addKey("text", Unmapped_Key, 0x7B, 8);
416 addKey("tv_radio", TunerInput_Key, 0x82, 8);
417 // addKey("aux", Unmapped_Key, 0x8A, 8);
418 addKey("open-close", Eject_Key, 0x9A, 8);
419 addKey("audio", Audio_Key, 0xA0, 8);
420 addKey("sound", SoundMode_Key, 0xA1, 8);
421 addKey("return", Exit_Key, 0xA2, 8);
422 addKey("display", Info_Key, 0xA3, 8);
423 addKey("menu", DiscMenu_Key, 0xA4, 8);
424 addKey("setup", Menu_Key, 0xA5, 8);
425 addKey("down", Down_Key, 0xA6, 8);
426 addKey("up", Up_Key, 0xA7, 8);
427 addKey("left", Left_Key, 0xA8, 8);
428 addKey("right", Right_Key, 0xA9, 8);
429 addKey("enter", Select_Key, 0xAA, 8);
430 addKey("s-title", Unmapped_Key, 0xAB, 8);
431 addKey("angle", Angle_Key, 0xAC, 8);
432 addKey("repeata-b", RepeatAB_Key, 0xAD, 8);
433 addKey("zoom", Zoom_Key, 0xAE, 8);
434 addKey("title", DiscTitle_Key, 0xAF, 8);
435 addKey("clear", Clear_Key, 0xB0, 8);
436 addKey("<<", Rewind_Key, 0xB1, 8);
437 addKey(">>", FastForward_Key, 0xB2, 8);
438 addKey("search", Unmapped_Key, 0xB3, 8);
439 addKey("marker", Unmapped_Key, 0xB4, 8);
440 addKey("sleep", Sleep_Key, 0xC2, 8);
451 addControlledDevice(LG_Make, "DV552", DVD_Device);
455 void LGDisc2::populateProtocol(
458 if (threadableProtocol)
460 // If the pointer is not null, the keyset must already be populated.
464 threadableProtocol = new NECXProtocol(guiObject, index, true);
466 setPreData(0x2D2D, 16);
468 addKey("POWER", Power_Key, 0x30, 8);
469 addKey("PLAY", Play_Key, 0x31, 8);
470 addKey("SCAN-BACK", Rewind_Key, 0x32, 8); // <<
471 addKey("SCAN-FORWARD", FastForward_Key, 0x33, 8); // >>
472 addKey("SKIP-FORWARD", Next_Key, 0x34, 16); // >>|
473 addKey("SKIP-BACK", Previous_Key, 0x35, 16); // |<<
474 addKey("OPEN/CLOSE", Eject_Key, 0x36, 8);
475 addKey("PAUSE", Pause_Key, 0x38, 8);
476 addKey("STOP", Stop_Key, 0x39, 8);
477 addKey("DISPLAY", Info_Key, 0x3A, 8);
478 addKey("1", One_Key, 0x3B, 8);
479 addKey("2", Two_Key, 0x3C, 8);
480 addKey("3", Three_Key, 0x3D, 8);
481 addKey("4", Four_Key, 0x3E, 8);
482 addKey("5", Five_Key, 0x3F, 8);
483 addKey("6", Six_Key, 0x40, 8);
484 addKey("7", Seven_Key, 0x41, 8);
485 addKey("8", Eight_Key, 0x42, 8);
486 addKey("9", Nine_Key, 0x43, 8);
487 addKey("0", Zero_Key, 0x44, 8);
488 addKey("RETURN", Exit_Key, 0x45, 8);
489 addKey("CLEAR", Clear_Key, 0x46, 8);
490 addKey("UP", Up_Key, 0x47, 8);
491 addKey("DOWN", Down_Key, 0x48, 8);
492 addKey("TITLE", DiscTitle_Key, 0x4A, 8);
493 addKey("DVD-MENU", DiscMenu_Key, 0x4B, 8);
494 addKey("ANGLE", Angle_Key, 0x4C, 8);
495 addKey("AUDIO", Audio_Key, 0x4F, 8);
496 addKey("SUBTITLE", Captions_Key, 0x50, 8);
497 addKey("RANDOM", Random_Key, 0x51, 8); // "cm-skip"
498 addKey("REPEAT", Repeat_Key, 0x53, 8);
499 addKey("A-B", RepeatAB_Key, 0x55, 8); // "lp"
500 addKey("SETUP", Menu_Key, 0x56, 8);
501 addKey("PROGRAM", Program_Key, 0x57, 8);
502 addKey("ENTER", Select_Key, 0x58, 8); // "ok"
503 addKey("LEFT", Left_Key, 0x59, 8);
504 addKey("RIGHT", Right_Key, 0x5A, 8);
505 addKey("STAR", Unmapped_Key, 0x5E, 8);
506 addKey("KEY_PIP", PIP_Key, 0x5F, 8);
507 addKey("MARKER", Unmapped_Key, 0x61, 8);
508 addKey("SEARCH", Unmapped_Key, 0x62, 8); // "random"
509 addKey("ZOOM", Zoom_Key, 0x64, 8);
510 addKey("PowerOn", PowerOn_Key, 0x75, 8);
511 addKey("PowerOff", PowerOff_Key, 0x76, 8);
512 addKey("DVD", Unmapped_Key, 0xF1, 8);
513 addKey("KEY_RESOLUTION", AspectRatio_Key, 0xF5, 8);
521 setKeysetName("DVD/BD Keyset 2a");
525 void LGDisc2a::populateProtocol(
528 if (threadableProtocol)
530 // If the pointer is not null, the keyset must already be populated.
534 LGDisc2::populateProtocol(guiObject);
536 addKey("KEY_HOME", Menu_Key, 0x67, 8);
537 addKey("KEY_CLEAR", Clear_Key, 0x7C, 8);
538 addKey("KEY_RED", Red_Key, 0x7C, 8);
539 addKey("KEY_GREEN", Green_Key, 0x7D, 8);
540 addKey("KEY_YELLOW", Yellow_Key, 0x7E, 8);
541 addKey("KEY_BLUE", Blue_Key, 0x7F, 8);
555 void LGVCR1::populateProtocol(
558 if (threadableProtocol)
560 // If the pointer is not null, the keyset must already be populated.
564 threadableProtocol = new NECProtocol(guiObject, index, false, true);
565 threadableProtocol->setMinimumRepetitions(1);
569 addKey("eject", Eject_Key, 0x00, 8);
570 addKey("stop", Stop_Key, 0x01, 8);
571 addKey("rew", Rewind_Key, 0x02, 8);
572 addKey("ff", FastForward_Key, 0x03, 8);
573 addKey("0", Zero_Key, 0x04, 8);
574 addKey("1", One_Key, 0x05, 8);
575 addKey("2", Two_Key, 0x06, 8);
576 addKey("3", Three_Key, 0x07, 8);
577 addKey("play", Play_Key, 0x08, 8);
578 addKey("rec", Record_Key, 0x09, 8);
579 addKey("p/still", Pause_Key, 0x0B, 8);
580 addKey("4", Four_Key, 0x0C, 8);
581 addKey("5", Five_Key, 0x0D, 8);
582 addKey("6", Six_Key, 0x0E, 8);
583 addKey("7", Seven_Key, 0x0F, 8);
584 addKey("power", Power_Key, 0x14, 8);
585 addKey("tv/vcr", Input_Key, 0x15, 8);
586 addKey("menu", Menu_Key, 0x16, 8); // "setup", "I"
587 addKey("pr+", ChannelUp_Key, 0x18, 8);
588 addKey("pr+", Up_Key, 0x18, 8);
589 addKey("pr-", ChannelDown_Key, 0x19, 8);
590 addKey("pr-", Down_Key, 0x19, 8);
591 addKey("8", Eight_Key, 0x1C, 8);
592 addKey("9", Nine_Key, 0x1D, 8);
593 addKey("ok", Select_Key, 0x1E, 8);
594 addKey("clear/reset", Clear_Key, 0x1F, 8); // might be wrong
595 addKey("timer-prog", Program_Key, 0x3A, 8);
596 addKey("viss", IndexSearch_Key, 0x41, 8); // "marker-search"
597 addKey("trk-", TrackingMinus_Key, 0x44, 8);
598 addKey("trk+", TrackingPlus_Key, 0x45, 8);
599 addKey("*", Unmapped_Key, 0x47, 8);
600 addKey("lp", VHSSpeed_Key, 0x48, 8);
601 addKey("clock/count", Clock_Key, 0x4C, 8);
602 addKey("tv/av", Unmapped_Key, 0x56, 8);
603 addKey("vol+", VolumeUp_Key, 0x58, 8);
604 addKey("vol+", Right_Key, 0x58, 8);
605 addKey("vol-", VolumeDown_Key, 0x59, 8);
606 addKey("vol-", Left_Key, 0x59, 8);
607 addKey("sleep", Sleep_Key, 0x5C, 8);
608 addKey("mute", Mute_Key, 0x5D, 8);
609 addKey("auto", AutoTracking_Key, 0x5F, 8); // "A.TRK"
610 addKey("qview", Unmapped_Key, 0x77, 8);
611 addKey("repeat", Repeat_Key, 0xB6, 8);
612 addKey("ez_POWER_OFF", PowerOff_Key, 0xB8, 8);
613 addKey("audio", Audio_Key, 0xC1, 8);
614 addKey("c/lock", Unmapped_Key, 0xCF, 8);
615 addKey("system", Unmapped_Key, 0xDC, 8);
616 addKey("VCR", Unmapped_Key, 0xF1, 8);
617 addKey("cm-skip", Unmapped_Key, 0xDD, 8);
625 setKeysetName("VCR Keyset 1a");
629 void LGVCR1a::populateProtocol(
632 if (threadableProtocol)
634 // If the pointer is not null, the keyset must already be populated.
638 LGVCR1::populateProtocol(guiObject);
640 addKey("power", Power_Key, 0x7D, 8);
648 setKeysetName("VCR Keyset 1b");
652 void LGVCR1b::populateProtocol(
655 if (threadableProtocol)
657 // If the pointer is not null, the keyset must already be populated.
661 LGVCR1::populateProtocol(guiObject);
663 addKey("menu-up", Up_Key, 0x82, 8);
664 addKey("menu-left", Left_Key, 0x83, 8);
665 addKey("menu-down", Down_Key, 0x89, 8);
666 addKey("ok", Select_Key, 0x8E, 8);
667 addKey("menu-right", Right_Key, 0x90, 8);
681 void LGAC1::populateProtocol(
684 if (threadableProtocol)
686 // If the pointer is not null, the keyset must already be populated.
690 threadableProtocol = new NECProtocol(guiObject, index, true, true);
691 threadableProtocol->setMinimumRepetitions(1);
693 setPreData(0x6681, 16);
695 addKey("power", Power_Key, 0x81, 8);
696 addKey("temp up", TempUp_Key, 0x85, 8);
697 addKey("temp down", TempDown_Key, 0x8A, 8);
698 addKey("timer", Timer_Key, 0x90, 8);
699 addKey("fan speed", FanFaster_Key, 0x99, 8);
700 addKey("mode", Mode_Key, 0x9B, 8);