Advertisement
Guest User

Untitled

a guest
Dec 13th, 2011
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.90 KB | None | 0 0
  1. <!-- This file contains the mapping of keys (gamepad,remote and keyboard) to actions within XBMC -->
  2. <!-- The <global> section is a fall through - they will only be used if the button is not -->
  3. <!-- used in the current window's section. Note that there is only handling -->
  4. <!-- for a single action per button at this stage. -->
  5. <!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox -->
  6. <!-- gamepads. -->
  7.  
  8. <!-- The format is: -->
  9. <!-- <device> -->
  10. <!-- <button id="#">xbmc action</button> -->
  11. <!-- </device> -->
  12.  
  13. <!-- To map keys from other remotes using the RCA protocol, you may add <universalremote> blocks -->
  14. <!-- In this case, the tags used are <obc#> where # is the original button code (OBC) of the key -->
  15. <!-- You set it up by adding a <universalremote> block to the window or <global> section: -->
  16. <!-- <universalremote> -->
  17. <!-- <obc45>Stop</obc45> -->
  18. <!-- </universalremote> -->
  19.  
  20. <!-- Note that the action can be a built-in function. -->
  21. <!-- eg <button id="6">XBMC.ActivateWindow(Favourites)</button> -->
  22. <!-- would bring up Favourites when the button with the id of 6 is press. In this case, "Menu" -->
  23.  
  24. <!-- -->
  25. <!-- Button Ids: -->
  26. <!-- 'id' is the button ID used by SDL. The button ids recognized from your remote appears -->
  27. <!-- in /var/log/syslog on the ATV2 for each button pressed and when debug mode is enabled -->
  28. <!-- Use your log to discover and map custom buttons to actions. -->
  29.  
  30. <keymap>
  31. <global>
  32. <joystick name="AppleRemote">
  33. <!-- plus --> <button id="1">Up</button>
  34. <!-- minus --> <button id="2">Down</button>
  35. <!-- left --> <button id="3">Left</button>
  36. <!-- right --> <button id="4">Right</button>
  37. <!-- center --> <button id="5">Select</button>
  38. <!-- menu --> <button id="6">Back</button>
  39. <!-- hold center--> <button id="7">Fullscreen</button>
  40. <!-- hold menu --> <button id="8">ContextMenu</button>
  41.  
  42. <!-- old buttons for ATV <2.2, used on OSX -->
  43. <!-- hold left --> <button id="9">Left</button>
  44. <!-- hold right --> <button id="10">Right</button>
  45.  
  46. <!-- new aluminium remote buttons -->
  47. <!-- play/pause --> <button id="12">Play</button>
  48.  
  49. <!-- Additional buttons via Harmony Apple TV remote profile -->
  50. <!-- pageup --> <button id="13">PageUp</button>
  51. <!-- pagedown --> <button id="14">PageDown</button>
  52. <!-- pause --> <button id="15">Pause</button><!-- work? -->
  53. <!-- play2 --> <button id="16">Play</button>
  54. <!-- stop --> <button id="17">Stop</button>
  55. <!-- fast fwd --> <button id="18">FastForward</button><!-- work? -->
  56. <!-- rewind --> <button id="19">Rewind</button>
  57. <!-- skip fwd --> <button id="20">SkipNext</button>
  58. <!-- skip back --> <button id="21">SkipPrevious</button>
  59.  
  60. <!-- Learned remote buttons (ATV >2.3) -->
  61. <!-- Play --> <button id="70">Play</button>
  62. <!-- Pause --> <button id="71">Pause</button>
  63. <!-- Stop --> <button id="72">Stop</button>
  64. <!-- Previous --> <button id="73">SkipPrevious</button>
  65. <!-- Next --> <button id="74">SkipNext</button>
  66. <!-- Rewind --> <button id="75">Rewind</button>
  67. <!-- Forward --> <button id="76">FastForward</button>
  68. <!-- Return --> <button id="77">OSD</button>
  69. <!-- Enter --> <button id="78">ShowVideoMenu</button>
  70.  
  71. <!-- few gestures from Apple's iPhone Remote (ATV > 2.3 ?) -->
  72. <!-- SwipeLeft --> <button id="80">Left</button>
  73. <!-- SwipeRight --> <button id="81">Right</button>
  74. <!-- SwipeUp --> <button id="82">Up</button>
  75. <!-- SwipeDown --> <button id="83">Down</button>
  76.  
  77. <!-- FlickLeft --> <button id="85">Left</button>
  78. <!-- FlickRight --> <button id="86">Right</button>
  79. <!-- FlickUp --> <button id="87">Up</button>
  80. <!-- FlickDown --> <button id="88">Down</button>
  81.  
  82. </joystick>
  83. </global>
  84. <Home>
  85. <joystick name="AppleRemote">
  86. <button id="6">XBMC.ActivateWindow(Favourites)</button>
  87. <button id="8">ActivateWindow(shutdownmenu)</button>
  88. </joystick>
  89. </Home>
  90. <FullscreenVideo>
  91. <joystick name="AppleRemote">
  92. <button id="1">VolumeUp</button>
  93. <button id="2">VolumeDown</button>
  94. <button id="3">Rewind</button>
  95. <button id="4">FastForward</button>
  96. <button id="5">Pause</button>
  97. <button id="6">Stop</button>
  98. <button id="7">OSD</button>
  99. <button id="8">Fullscreen</button>
  100. <button id="9">Rewind</button>
  101. <button id="10">FastForward</button>
  102. <!-- pageup --> <button id="13">BigStepForward</button>
  103. <!-- pagedown --> <button id="14">BigStepBack</button>
  104. <!-- SwipeLeft --> <button id="80">StepBack</button>
  105. <!-- SwipeRight --> <button id="81">StepForward</button>
  106. <!-- SwipeUp --> <button id="82">BigStepForward</button>
  107. <!-- SwipeDown --> <button id="83">BigStepBack</button>
  108. <!-- FlickLeft --> <button id="85">Rewind</button>
  109. <!-- FlickRight --> <button id="86">FastForward</button>
  110. <!-- FlickUp --> <button id="87">BigStepForward</button>
  111. <!-- FlickDown --> <button id="88">BigStepBack</button>
  112. </joystick>
  113. </FullscreenVideo>
  114. <Visualisation>
  115. <joystick name="AppleRemote">
  116. <button id="1">VolumeUp</button>
  117. <button id="2">VolumeDown</button>
  118. <button id="3">SkipPrevious</button>
  119. <button id="4">SkipNext</button>
  120. <button id="5">Pause</button>
  121. <button id="6">Fullscreen</button>
  122. <button id="7">XBMC.ActivateWindow(MusicOSD)</button>
  123. <button id="8">Stop</button>
  124. <!-- SwipeLeft --> <button id="80">SkipPrevious</button>
  125. <!-- SwipeRight --> <button id="81">SkipNext</button>
  126. <!-- FlickLeft --> <button id="85">SkipPrevious</button>
  127. <!-- FlickRight --> <button id="86">SkipNext</button>
  128. </joystick>
  129. </Visualisation>
  130. <SlideShow>
  131. <joystick name="AppleRemote">
  132. <button id="1">ZoomIn</button>
  133. <button id="2">ZoomOut</button>
  134. <button id="3">PreviousPicture</button>
  135. <button id="4">NextPicture</button>
  136. <button id="6">Stop</button>
  137. <button id="7">Info</button>
  138. <button id="8">Rotate</button>
  139. <!-- SwipeLeft --> <button id="80">PreviousPicture</button>
  140. <!-- SwipeRight --> <button id="81">NextPicture</button>
  141. <!-- FlickLeft --> <button id="85">PreviousPicture</button>
  142. <!-- FlickRight --> <button id="86">NextPicture</button>
  143. </joystick>
  144. </SlideShow>
  145. <ScreenCalibration>
  146. <joystick name="AppleRemote">
  147. <button id="5">NextCalibration</button>
  148. </joystick>
  149. </ScreenCalibration>
  150. <VideoOSD>
  151. <joystick name="AppleRemote">
  152. <button id="7">Back</button>
  153. </joystick>
  154. </VideoOSD>
  155. <VideoMenu>
  156. <joystick name="AppleRemote">
  157. <button id="5">Select</button>
  158. <button id="6">Stop</button>
  159. <button id="7">OSD</button>
  160. <button id="8"/>
  161. </joystick>
  162. </VideoMenu>
  163. <MyVideoLibrary>
  164. <joystick name="AppleRemote">
  165. <button id="7">Info</button>
  166. </joystick>
  167. </MyVideoLibrary>
  168. <MyVideoFiles>
  169. <joystick name="AppleRemote">
  170. <button id="7">Info</button>
  171. </joystick>
  172. </MyVideoFiles>
  173. <PictureInfo>
  174. <joystick name="AppleRemote">
  175. <button id="3">Left</button>
  176. <button id="4">Right</button>
  177. <!-- SwipeLeft --> <button id="80">Left</button>
  178. <!-- SwipeRight --> <button id="81">Right</button>
  179. <!-- FlickLeft --> <button id="85">Left</button>
  180. <!-- FlickRight --> <button id="86">Right</button>
  181. </joystick>
  182. </PictureInfo>
  183. </keymap>
  184.  
  185.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement