apple-remote.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // This keymap handles two different kind of apple remotes,
  2. // the standard one that you pick up for your appletv or old mac mini
  3. // and the old PHT style harmony remote. PHT had a interesting hack that
  4. // changed the device-id between keypresses to be able to emulate more
  5. // buttons than was physically on the remote. In PMP we emulate this mode
  6. // by sending the deviceID (XXX) first in the keycode like: XXX-Y
  7. //
  8. // The harmony sends out deviceId's between 150 and 160 for this mode so
  9. // the host code makes sure that deviceId comes through on those ranges
  10. // but not on any other deviceID, then we just emit the keycode.
  11. //
  12. {
  13. "name": "Apple Remote",
  14. "idmatcher": "AppleRemote.*",
  15. "mapping": {
  16. // Standard Apple Remote mapping
  17. "1": {
  18. "short": "up",
  19. "long": "cycle_audio"
  20. },
  21. "2": {
  22. "short": "down",
  23. "long": "cycle_audio_back"
  24. },
  25. "3": "left",
  26. "4": "right",
  27. "5": "enter",
  28. "6": "back",
  29. "7": "play_pause",
  30. // PHT harmony emulation in format "DEVICEID-KEYCODE"
  31. "150-1": "up",
  32. "150-2": "down",
  33. "150-3": "left",
  34. "150-4": "right",
  35. "150-5": "enter",
  36. "150-6": "back",
  37. "151-1": "1",
  38. "151-2": "2",
  39. "151-3": "3",
  40. "151-4": "4",
  41. "152-3": "5",
  42. "152-4": "6",
  43. "153-3": "7",
  44. "153-4": "8",
  45. "154-3": "9",
  46. "154-4": "0",
  47. "153-2": "back",
  48. "151-5": "stop",
  49. "151-6": "play",
  50. "152-6": "pause",
  51. "154-1": "step_backward",
  52. "154-2": "step_forward",
  53. "155-1": "home",
  54. "153-1": "host:toggleDebug",
  55. "154-6": "host:suspend",
  56. "158-1": "seek_backward",
  57. "158-2": "seek_forward"
  58. // Keys that are mapped in the harmony but not used in PMP
  59. //"157-1": "aspect",
  60. //"154-5": "clear",
  61. //"157-6": "power toggle",
  62. //"153-6": "enter",
  63. //"157-2": "queue"
  64. }
  65. }