Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.57 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- This file contains the mapping of keys (gamepad,remote and keyboard) to actions within XBMC -->
  3. <!-- The <global> section is a fall through - they will only be used if the button is not -->
  4. <!-- used in the current window's section. Note that there is only handling -->
  5. <!-- for a single action per button at this stage. -->
  6. <!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox -->
  7. <!-- gamepads. -->
  8.  
  9. <!-- The format is: -->
  10. <!-- <device> -->
  11. <!-- <button id=""#>xbmc action</button>
  12. <!-- </device> -->
  13.  
  14. <!-- To map keys from other remotes using the RCA protocol, you may add <customcontroller name="SiriRemote"> blocks -->
  15. <!-- In this case, the tags used are <button id=""#> where # is the original button code (OBC) of the key -->
  16. <!-- You set it up by adding a <customcontroller name="SiriRemote"> block to the window or <global> section: -->
  17. <!-- <customcontroller name="SiriRemote"> -->
  18. <!-- <button id="45">Stop</button>
  19. <!-- </customcontroller> -->
  20.  
  21. <!-- Note that the action can be a built-in function. -->
  22. <!-- eg <button id="6">ActivateWindow(Favourites)</button>
  23. <!-- would bring up Favourites when the button with the id of 6 is press. In this case, "Menu" -->
  24.  
  25. <!-- -->
  26. <!-- Button Ids: -->
  27. <!-- 'id' is the button ID used by SDL. The key ids recognized from your remote appears -->
  28. <!-- in /var/log/syslog on the ATV2 for each button pressed and when debug mode is enabled -->
  29. <!-- Use your log to discover and map custom buttons to actions. -->
  30.  
  31. <keymap>
  32. <global>
  33. <customcontroller name="SiriRemote">
  34. <!-- tap/ir up --> <button id="1">Up</button>
  35. <!-- tap/ir down --> <button id="2">Down</button>
  36. <!-- tap/ir left --> <button id="3">Left</button>
  37. <!-- tap/ir right --> <button id="4">Right</button>
  38. <!-- tap/ir center --> <button id="5">Select</button>
  39. <!-- menu --> <button id="6">Back</button>
  40. <!-- hold center --> <button id="7">ContextMenu</button>
  41. <!-- swipe up --> <button id="8">Up</button>
  42. <!-- swipe down --> <button id="9">Down</button>
  43. <!-- swipe left --> <button id="10">Left</button>
  44. <!-- swipe right --> <button id="11">Right</button>
  45. <!-- play/pause --> <button id="12">PlayPause</button>
  46. <!-- ir play --> <button id="13">Play</button>
  47. <!-- ir pause --> <button id="14">Pause</button>
  48. <!-- ir stop --> <button id="15">Stop</button>
  49. <!-- ir next track --> <button id="16">SkipNext</button>
  50. <!-- ir prev track --> <button id="17">SkipPrevious</button>
  51. <!-- ir fast forward --> <button id="18">FastForward</button>
  52. <!-- ir rewind --> <button id="19">Rewind</button>
  53. <!-- menu at home --> <button id="20">PreviousMenu</button>
  54. <!-- swipe left/up --> <button id="21">ScrollUp</button>
  55. <!-- swipe right/down --><button id="22">ScrollDown</button>
  56. <!-- page up --> <button id="23">PageUp</button>
  57. <!-- page down --> <button id="24">PageDown</button>
  58. </customcontroller>
  59. </global>
  60. <Home>
  61. <customcontroller name="SiriRemote">
  62. <button id="6">ActivateWindow(Favourites)</button>
  63. </customcontroller>
  64. </Home>
  65. <FullscreenVideo>
  66. <customcontroller name="SiriRemote">
  67. <button id="1">BigStepForward</button>
  68. <button id="2">BigStepBack</button>
  69. <button id="3">StepBack</button>
  70. <button id="4">StepForward</button>
  71. <button id="5">OSD</button>
  72. <button id="6">Stop</button>
  73. <button id="7">Pause</button>
  74. <button id="8">noop</button>
  75. <button id="9">noop</button>
  76. <button id="10">StepBack</button>
  77. <button id="11">StepForward</button>
  78. </customcontroller>
  79. </FullscreenVideo>
  80. <FullscreenLiveTV>
  81. <customcontroller name="SiriRemote">
  82. <button id="3">ChannelDown</button>
  83. <button id="4">ChannelUp</button>
  84. <button id="8">noop</button>
  85. <button id="9">noop</button>
  86. <button id="10">noop</button>
  87. <button id="11">noop</button>
  88. </customcontroller>
  89. </FullscreenLiveTV>
  90. <FullscreenRadio>
  91. <customcontroller name="SiriRemote">
  92. <button id="3">ChannelDown</button>
  93. <button id="4">ChannelUp</button>
  94. </customcontroller>
  95. </FullscreenRadio>
  96. <Visualisation>
  97. <customcontroller name="SiriRemote">
  98. <button id="1">VolumeUp</button>
  99. <button id="2">VolumeDown</button>
  100. <button id="3">SkipPrevious</button>
  101. <button id="4">SkipNext</button>
  102. <button id="5">Pause</button>
  103. <button id="6">Fullscreen</button>
  104. <button id="7">OSD</button>
  105. </customcontroller>
  106. </Visualisation>
  107. <SlideShow>
  108. <customcontroller name="SiriRemote">
  109. <button id="1">ZoomIn</button>
  110. <button id="2">ZoomOut</button>
  111. <button id="3">PreviousPicture</button>
  112. <button id="4">NextPicture</button>
  113. <button id="6">Stop</button>
  114. <button id="7">Info</button>
  115. </customcontroller>
  116. </SlideShow>
  117. <ScreenCalibration>
  118. <customcontroller name="SiriRemote">
  119. <button id="5">NextCalibration</button>
  120. </customcontroller>
  121. </ScreenCalibration>
  122. <VideoOSD>
  123. <customcontroller name="SiriRemote">
  124. <button id="7">Back</button>
  125. </customcontroller>
  126. </VideoOSD>
  127. <VideoMenu>
  128. <customcontroller name="SiriRemote">
  129. <button id="5">Select</button>
  130. <button id="6">Stop</button>
  131. <button id="7">OSD</button>
  132. </customcontroller>
  133. </VideoMenu>
  134. <PictureInfo>
  135. <customcontroller name="SiriRemote">
  136. <button id="3">Left</button>
  137. <button id="4">Right</button>
  138. </customcontroller>
  139. </PictureInfo>
  140. </keymap>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement