tbs-nec.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* tbs-nec.h - Keytable for tbs_nec 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. #ifdef IR_KEYMAPS
  11. static struct ir_scancode tbs_nec[] = {
  12. { 0x04, KEY_POWER2}, /*power*/
  13. { 0x14, KEY_MUTE}, /*mute*/
  14. { 0x07, KEY_1},
  15. { 0x06, KEY_2},
  16. { 0x05, KEY_3},
  17. { 0x0b, KEY_4},
  18. { 0x0a, KEY_5},
  19. { 0x09, KEY_6},
  20. { 0x0f, KEY_7},
  21. { 0x0e, KEY_8},
  22. { 0x0d, KEY_9},
  23. { 0x12, KEY_0},
  24. { 0x16, KEY_CHANNELUP}, /*ch+*/
  25. { 0x11, KEY_CHANNELDOWN},/*ch-*/
  26. { 0x13, KEY_VOLUMEUP}, /*vol+*/
  27. { 0x0c, KEY_VOLUMEDOWN},/*vol-*/
  28. { 0x03, KEY_RECORD}, /*rec*/
  29. { 0x18, KEY_PAUSE}, /*pause*/
  30. { 0x19, KEY_OK}, /*ok*/
  31. { 0x1a, KEY_CAMERA}, /* snapshot */
  32. { 0x01, KEY_UP},
  33. { 0x10, KEY_LEFT},
  34. { 0x02, KEY_RIGHT},
  35. { 0x08, KEY_DOWN},
  36. { 0x15, KEY_FAVORITES},
  37. { 0x17, KEY_SUBTITLE},
  38. { 0x1d, KEY_ZOOM},
  39. { 0x1f, KEY_EXIT},
  40. { 0x1e, KEY_MENU},
  41. { 0x1c, KEY_EPG},
  42. { 0x00, KEY_PREVIOUS},
  43. { 0x1b, KEY_MODE},
  44. };
  45. DEFINE_LEGACY_IR_KEYTABLE(tbs_nec);
  46. #else
  47. DECLARE_IR_KEYTABLE(tbs_nec);
  48. #endif