hauppauge-new.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* hauppauge-new.h - Keytable for hauppauge_new Remote Controller
  2. *
  3. * Imported from ir-keymaps.c
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. */
  10. /* Hauppauge: the newer, gray remotes (seems there are multiple
  11. * slightly different versions), shipped with cx88+ivtv cards.
  12. * almost rc5 coding, but some non-standard keys */
  13. #ifdef IR_KEYMAPS
  14. static struct ir_scancode hauppauge_new[] = {
  15. /* Keys 0 to 9 */
  16. { 0x00, KEY_0 },
  17. { 0x01, KEY_1 },
  18. { 0x02, KEY_2 },
  19. { 0x03, KEY_3 },
  20. { 0x04, KEY_4 },
  21. { 0x05, KEY_5 },
  22. { 0x06, KEY_6 },
  23. { 0x07, KEY_7 },
  24. { 0x08, KEY_8 },
  25. { 0x09, KEY_9 },
  26. { 0x0a, KEY_TEXT }, /* keypad asterisk as well */
  27. { 0x0b, KEY_RED }, /* red button */
  28. { 0x0c, KEY_RADIO },
  29. { 0x0d, KEY_MENU },
  30. { 0x0e, KEY_SUBTITLE }, /* also the # key */
  31. { 0x0f, KEY_MUTE },
  32. { 0x10, KEY_VOLUMEUP },
  33. { 0x11, KEY_VOLUMEDOWN },
  34. { 0x12, KEY_PREVIOUS }, /* previous channel */
  35. { 0x14, KEY_UP },
  36. { 0x15, KEY_DOWN },
  37. { 0x16, KEY_LEFT },
  38. { 0x17, KEY_RIGHT },
  39. { 0x18, KEY_VIDEO }, /* Videos */
  40. { 0x19, KEY_AUDIO }, /* Music */
  41. /* 0x1a: Pictures - presume this means
  42. "Multimedia Home Platform" -
  43. no "PICTURES" key in input.h
  44. */
  45. { 0x1a, KEY_MHP },
  46. { 0x1b, KEY_EPG }, /* Guide */
  47. { 0x1c, KEY_TV },
  48. { 0x1e, KEY_NEXTSONG }, /* skip >| */
  49. { 0x1f, KEY_EXIT }, /* back/exit */
  50. { 0x20, KEY_CHANNELUP }, /* channel / program + */
  51. { 0x21, KEY_CHANNELDOWN }, /* channel / program - */
  52. { 0x22, KEY_CHANNEL }, /* source (old black remote) */
  53. { 0x24, KEY_PREVIOUSSONG }, /* replay |< */
  54. { 0x25, KEY_ENTER }, /* OK */
  55. { 0x26, KEY_SLEEP }, /* minimize (old black remote) */
  56. { 0x29, KEY_BLUE }, /* blue key */
  57. { 0x2e, KEY_GREEN }, /* green button */
  58. { 0x30, KEY_PAUSE }, /* pause */
  59. { 0x32, KEY_REWIND }, /* backward << */
  60. { 0x34, KEY_FASTFORWARD }, /* forward >> */
  61. { 0x35, KEY_PLAY },
  62. { 0x36, KEY_STOP },
  63. { 0x37, KEY_RECORD }, /* recording */
  64. { 0x38, KEY_YELLOW }, /* yellow key */
  65. { 0x3b, KEY_SELECT }, /* top right button */
  66. { 0x3c, KEY_ZOOM }, /* full */
  67. { 0x3d, KEY_POWER }, /* system power (green button) */
  68. };
  69. DEFINE_LEGACY_IR_KEYTABLE(hauppauge_new);
  70. #else
  71. DECLARE_IR_KEYTABLE(hauppauge_new);
  72. #endif