rc5-hauppauge-new.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /* rc5-hauppauge-new.h - Keytable for rc5_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. /*
  11. * Hauppauge:the newer, gray remotes (seems there are multiple
  12. * slightly different versions), shipped with cx88+ivtv cards.
  13. *
  14. * This table contains the complete RC5 code, instead of just the data part
  15. */
  16. #ifdef IR_KEYMAPS
  17. static struct ir_scancode rc5_hauppauge_new[] = {
  18. /* Keys 0 to 9 */
  19. { 0x1e00, KEY_0 },
  20. { 0x1e01, KEY_1 },
  21. { 0x1e02, KEY_2 },
  22. { 0x1e03, KEY_3 },
  23. { 0x1e04, KEY_4 },
  24. { 0x1e05, KEY_5 },
  25. { 0x1e06, KEY_6 },
  26. { 0x1e07, KEY_7 },
  27. { 0x1e08, KEY_8 },
  28. { 0x1e09, KEY_9 },
  29. { 0x1e0a, KEY_TEXT }, /* keypad asterisk as well */
  30. { 0x1e0b, KEY_RED }, /* red button */
  31. { 0x1e0c, KEY_RADIO },
  32. { 0x1e0d, KEY_MENU },
  33. { 0x1e0e, KEY_SUBTITLE }, /* also the # key */
  34. { 0x1e0f, KEY_MUTE },
  35. { 0x1e10, KEY_VOLUMEUP },
  36. { 0x1e11, KEY_VOLUMEDOWN },
  37. { 0x1e12, KEY_PREVIOUS }, /* previous channel */
  38. { 0x1e14, KEY_UP },
  39. { 0x1e15, KEY_DOWN },
  40. { 0x1e16, KEY_LEFT },
  41. { 0x1e17, KEY_RIGHT },
  42. { 0x1e18, KEY_VIDEO }, /* Videos */
  43. { 0x1e19, KEY_AUDIO }, /* Music */
  44. /* 0x1e1a: Pictures - presume this means
  45. "Multimedia Home Platform" -
  46. no "PICTURES" key in input.h
  47. */
  48. { 0x1e1a, KEY_MHP },
  49. { 0x1e1b, KEY_EPG }, /* Guide */
  50. { 0x1e1c, KEY_TV },
  51. { 0x1e1e, KEY_NEXTSONG }, /* skip >| */
  52. { 0x1e1f, KEY_EXIT }, /* back/exit */
  53. { 0x1e20, KEY_CHANNELUP }, /* channel / program + */
  54. { 0x1e21, KEY_CHANNELDOWN }, /* channel / program - */
  55. { 0x1e22, KEY_CHANNEL }, /* source (old black remote) */
  56. { 0x1e24, KEY_PREVIOUSSONG }, /* replay |< */
  57. { 0x1e25, KEY_ENTER }, /* OK */
  58. { 0x1e26, KEY_SLEEP }, /* minimize (old black remote) */
  59. { 0x1e29, KEY_BLUE }, /* blue key */
  60. { 0x1e2e, KEY_GREEN }, /* green button */
  61. { 0x1e30, KEY_PAUSE }, /* pause */
  62. { 0x1e32, KEY_REWIND }, /* backward << */
  63. { 0x1e34, KEY_FASTFORWARD }, /* forward >> */
  64. { 0x1e35, KEY_PLAY },
  65. { 0x1e36, KEY_STOP },
  66. { 0x1e37, KEY_RECORD }, /* recording */
  67. { 0x1e38, KEY_YELLOW }, /* yellow key */
  68. { 0x1e3b, KEY_SELECT }, /* top right button */
  69. { 0x1e3c, KEY_ZOOM }, /* full */
  70. { 0x1e3d, KEY_POWER }, /* system power (green button) */
  71. };
  72. DEFINE_IR_KEYTABLE(rc5_hauppauge_new, IR_TYPE_RC5);
  73. #else
  74. DECLARE_IR_KEYTABLE(rc5_hauppauge_new);
  75. #endif