Advertisement
Guest User

Untitled

a guest
Dec 9th, 2015
1,700
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.17 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- This file contains the mappings for a Microsoft Xbox One Controller to actions within XBMC -->
  3. <!-- The drivers for Linux and Windows do not always match. Mappings for Win32 will be presented -->
  4. <!-- first, with Linux alts second. -->
  5. <!-- The <global> section is a fall through - they will only be used if the button is not -->
  6. <!-- used in the current window's section. Note that there is only handling -->
  7. <!-- for a single action per button at this stage. -->
  8.  
  9. <!-- The format of a mapping is: -->
  10. <!-- <device name="name"> -->
  11. <!-- <button id="x">action</button> -->
  12. <!-- <axis id="x" limit="y">action</axis> -->
  13. <!-- <hat id="1" position="left">action</hat> -->
  14. <!-- </device> -->
  15.  
  16. <!-- Note that the action can be a built-in function. -->
  17. <!-- eg <button id="x">ActivateWindow(Home)</button> -->
  18. <!-- would automatically go to Home on the press of button 'x'. -->
  19.  
  20. <!-- Joystick Name: Xbox One Wireless Receiver -->
  21.  
  22. <!-- Button Mappings in Windows: -->
  23. <!-- -->
  24. <!-- ID Button -->
  25. <!-- -->
  26. <!-- 1 A -->
  27. <!-- 2 B -->
  28. <!-- 3 X -->
  29. <!-- 4 Y -->
  30. <!-- 5 Left Sholder -->
  31. <!-- 6 Right Sholder -->
  32. <!-- 7 Back -->
  33. <!-- 8 Start -->
  34. <!-- 9 Left Stick Button -->
  35. <!-- 10 Right Stick Button -->
  36. <!-- 11 D-Pad Up -->
  37. <!-- 12 D-Pad Down -->
  38. <!-- 13 D-Pad Left -->
  39. <!-- 14 D-Pad Right -->
  40. <!-- 15 Back -->
  41.  
  42. <!-- Axis Mappings: -->
  43. <!-- -->
  44. <!-- ID Button -->
  45. <!-- -->
  46. <!-- 1 Left Stick L/R -->
  47. <!-- 2 Left Stick U/D -->
  48. <!-- 3 limit +1 Left Trigger -->
  49. <!-- 3 limit -1 Right Trigger -->
  50. <!-- 4 Right Stick L/R -->
  51. <!-- 5 Right Stick U/D -->
  52.  
  53. <!-- Hat Mappings for some drivers: -->
  54. <!-- -->
  55. <!-- ID Position Button -->
  56. <!-- -->
  57. <!-- 1 up D-Pad Up -->
  58. <!-- 1 down D-Pad Down -->
  59. <!-- 1 left D-Pad Left -->
  60. <!-- 1 right D-Pad Right -->
  61.  
  62. <keymap>
  63.  
  64. <global>
  65. <joystick name="Controller (Xbox One For Windows)">
  66. <!-- A selects. B goes back. X gets context menu. Y goes fullscreen and back. -->
  67. <button id="1">Select</button>
  68. <button id="2">Back</button>
  69. <button id="3">ContextMenu</button>
  70. <button id="4">FullScreen</button>
  71. <!--Left Shoulder Queues videos. Right shoulder displays the current queue. -->
  72. <button id="5">Queue</button>
  73. <button id="6">Playlist</button>
  74. <button id="7">PreviousMenu</button>
  75. <button id="8">ActivateWindow(Home)</button>
  76. <!-- Left stick click activates the shutdown menu. -->
  77. <button id="9">ActivateWindow(ShutdownMenu)</button>
  78. <button id="10">ActivateWindow(PlayerControls)</button>
  79. <button id="11">Up</button>
  80. <button id="12">Down</button>
  81. <button id="13">Left</button>
  82. <button id="14">Right</button>
  83. <button id="15">PreviousMenu</button>
  84. <axis id="1" limit="-1">AnalogSeekBack</axis>
  85. <axis id="1" limit="+1">AnalogSeekForward</axis>
  86. <axis id="2" limit="-1">AnalogSeekForward</axis>
  87. <axis id="2" limit="+1">AnalogSeekBack</axis>
  88. <axis id="3" trigger="true" rest="-32768">ScrollUp</axis>
  89. <axis id="6" trigger="true" rest="-32768">ScrollDown</axis>
  90. <!-- Push up on the right stick for volueme up. Push down for volume down. -->
  91. <axis id="5" limit="-1">VolumeUp</axis>
  92. <axis id="5" limit="+1">VolumeDown</axis>
  93. <axis id="4" limit="-1">VolumeDown</axis>
  94. <axis id="4" limit="+1">VolumeUp</axis>
  95. <hat id="1" position="up">Up</hat>
  96. <hat id="1" position="down">Down</hat>
  97. <hat id="1" position="left">Left</hat>
  98. <hat id="1" position="right">Right</hat>
  99. </joystick>
  100. </global>
  101.  
  102. <Home>
  103. <joystick name="Controller (Xbox One For Windows)">
  104. <button id="8">Skin.ToggleSetting(HomeViewToggle)</button>
  105. <axis id="3" trigger="true" rest="-32768">Left</axis>
  106. <axis id="6" trigger="true" rest="-32768">Right</axis>
  107. </joystick>
  108. </Home>
  109.  
  110. <MyFiles>
  111. <joystick name="Controller (Xbox One For Windows)">
  112. <button id="6">Highlight</button>
  113. </joystick>
  114. </MyFiles>
  115.  
  116. <MyMusicPlaylist>
  117. <joystick name="Controller (Xbox One For Windows)">
  118. <button id="5">Delete</button>
  119. </joystick>
  120. </MyMusicPlaylist>
  121.  
  122. <MyMusicFiles>
  123. </MyMusicFiles>
  124.  
  125. <MyMusicLibrary>
  126. <joystick name="Controller (Xbox One For Windows)">
  127. <button id="4">Queue</button>
  128. <button id="6">Info</button>
  129. </joystick>
  130. </MyMusicLibrary>
  131.  
  132. <FullscreenVideo>
  133. <joystick name="Controller (Xbox One For Windows)">
  134. <!--
  135. A pauses and starts the video.
  136. B stops the video.
  137. X opens the onscreen display.
  138. Y switches in and out of full screen
  139. -->
  140. <button id="1">Pause</button>
  141. <button id="2">Stop</button>
  142. <button id="3">OSD</button>
  143. <!--
  144. Left shoulder changes aspect ratio.
  145. Right shoulder changes subtitles.
  146. Right stick changes Audio Language.
  147. Start button displays info.
  148. -->
  149. <button id="5">AspectRatio</button>
  150. <button id="6">ShowSubtitles</button>
  151. <button id="7">Seek(-7)</button><!-- Replaces smallstepback -->
  152. <button id="8">Info</button>
  153. <button id="10">AudioNextLanguage</button>
  154. <button id="11">ChapterOrBigStepForward</button>
  155. <button id="12">ChapterOrBigStepBack</button>
  156. <button id="13">StepBack</button>
  157. <button id="14">StepForward</button>
  158. <!-- D-pad does what you'd expect. Triggers fast forward and rewind. Left stick scans forward and back. -->
  159. <axis id="3">AnalogRewind</axis>
  160. <axis id="6">AnalogFastForward</axis>
  161. <hat id="1" position="up">ChapterOrBigStepForward</hat>
  162. <hat id="1" position="down">ChapterOrBigStepBack</hat>
  163. <hat id="1" position="left">StepBack</hat>
  164. <hat id="1" position="right">StepForward</hat>
  165. </joystick>
  166. </FullscreenVideo>
  167.  
  168. <FullscreenLiveTV>
  169. <joystick name="Controller (Xbox One For Windows)">
  170. <button id="11">ChannelUp</button>
  171. <button id="12">ChannelDown</button>
  172. <button id="13">StepBack</button>
  173. <button id="14">StepForward</button>
  174. <hat id="1" position="up">ChannelUp</hat>
  175. <hat id="1" position="down">ChannelDown</hat>
  176. <hat id="1" position="left">StepBack</hat>
  177. <hat id="1" position="right">StepForward</hat>
  178. </joystick>
  179. </FullscreenLiveTV>
  180.  
  181. <FullscreenRadio>
  182. <joystick name="Controller (Xbox One For Windows)">
  183. <button id="11">ChannelUp</button>
  184. <button id="12">ChannelDown</button>
  185. <button id="13">StepBack</button>
  186. <button id="14">StepForward</button>
  187. <hat id="1" position="up">ChannelUp</hat>
  188. <hat id="1" position="down">ChannelDown</hat>
  189. <hat id="1" position="left">StepBack</hat>
  190. <hat id="1" position="right">StepForward</hat>
  191. </joystick>
  192. </FullscreenRadio>
  193.  
  194. <FullscreenInfo>
  195. <joystick name="Controller (Xbox One For Windows)">
  196. <button id="2">Close</button>
  197. <button id="3">OSD</button>
  198. <button id="8">Close</button>
  199. <axis id="3">AnalogRewind</axis>
  200. <axis id="6">AnalogFastForward</axis>
  201. </joystick>
  202. </FullscreenInfo>
  203.  
  204. <PlayerControls>
  205. <joystick name="Controller (Xbox One For Windows)">
  206. <button id="3">Close</button>
  207. <button id="9">Close</button>
  208. <button id="10">Close</button>
  209. </joystick>
  210. </PlayerControls>
  211.  
  212. <Visualisation>
  213. <joystick name="Controller (Xbox One For Windows)">
  214. <button id="1">Pause</button>
  215. <button id="2">Stop</button>
  216. <button id="3">ActivateWindow(MusicOSD)</button>
  217. <button id="5">ActivateWindow(VisualisationPresetList)</button>
  218. <button id="6">Info</button>
  219. <button id="10">ActivateWindow(MusicOSD)</button>
  220. <button id="11">SkipNext</button>
  221. <button id="12">SkipPrevious</button>
  222. <button id="13">PreviousPreset</button>
  223. <button id="14">NextPreset</button>
  224. <axis id="3">AnalogRewind</axis>
  225. <axis id="6">AnalogFastForward</axis>
  226. <hat id="1" position="up">SkipNext</hat>
  227. <hat id="1" position="down">SkipPrevious</hat>
  228. <hat id="1" position="left">StepBack</hat>
  229. <hat id="1" position="right">StepForward</hat>
  230. </joystick>
  231. </Visualisation>
  232.  
  233. <MusicOSD>
  234. <joystick name="Controller (Xbox One For Windows)">
  235. <button id="3">Close</button>
  236. <button id="6">Info</button>
  237. </joystick>
  238. </MusicOSD>
  239.  
  240. <VisualisationSettings>
  241. <joystick name="Controller (Xbox One For Windows)">
  242. <button id="2">Close</button>
  243. </joystick>
  244. </VisualisationSettings>
  245.  
  246. <VisualisationPresetList>
  247. <joystick name="Controller (Xbox One For Windows)">
  248. <button id="2">Close</button>
  249. </joystick>
  250. </VisualisationPresetList>
  251.  
  252. <SlideShow>
  253. <joystick name="Controller (Xbox One For Windows)">
  254. <button id="1">Pause</button>
  255. <button id="2">Stop</button>
  256. <button id="4">ZoomNormal</button>
  257. <button id="5">Rotate</button>
  258. <button id="6">CodecInfo</button>
  259. <button id="11">ZoomIn</button>
  260. <button id="12">ZoomOut</button>
  261. <button id="13">PreviousPicture</button>
  262. <button id="14">NextPicture</button>
  263. <axis id="1">AnalogMoveX</axis>
  264. <axis id="2">AnalogMoveY</axis>
  265. <axis id="3">ZoomOut</axis>
  266. <axis id="6">ZoomIn</axis>
  267. <hat id="1" position="up">ZoomIn</hat>
  268. <hat id="1" position="down">ZoomOut</hat>
  269. <hat id="1" position="left">PreviousPicture</hat>
  270. <hat id="1" position="right">NextPicture</hat>
  271. </joystick>
  272. </SlideShow>
  273.  
  274. <ScreenCalibration>
  275. <joystick name="Controller (Xbox One For Windows)">
  276. <button id="3">ResetCalibration</button>
  277. <button id="5">NextResolution</button>
  278. <button id="6">NextCalibration</button>
  279. </joystick>
  280. </ScreenCalibration>
  281.  
  282. <GUICalibration>
  283. <joystick name="Controller (Xbox One For Windows)">
  284. <button id="3">ResetCalibration</button>
  285. <button id="5">NextResolution</button>
  286. <button id="6">NextCalibration</button>
  287. </joystick>
  288. </GUICalibration>
  289.  
  290. <VideoOSD>
  291. <joystick name="Controller (Xbox One For Windows)">
  292. <button id="3">Close</button>
  293. </joystick>
  294. </VideoOSD>
  295.  
  296. <VideoMenu>
  297. <joystick name="Controller (Xbox One For Windows)">
  298. <button id="2">Stop</button>
  299. <button id="3">OSD</button>
  300. <button id="5">AspectRatio</button>
  301. <button id="8">Info</button>
  302. </joystick>
  303. </VideoMenu>
  304.  
  305. <OSDVideoSettings>
  306. <joystick name="Controller (Xbox One For Windows)">
  307. <button id="5">AspectRatio</button>
  308. <button id="3">Close</button>
  309. </joystick>
  310. </OSDVideoSettings>
  311.  
  312. <OSDAudioSettings>
  313. <joystick name="Controller (Xbox One For Windows)">
  314. <button id="5">AspectRatio</button>
  315. <button id="3">Close</button>
  316. </joystick>
  317. </OSDAudioSettings>
  318.  
  319. <VideoBookmarks>
  320. <joystick name="Controller (Xbox One For Windows)">
  321. <button id="5">Delete</button>
  322. </joystick>
  323. </VideoBookmarks>
  324.  
  325. <MyVideoLibrary>
  326. <joystick name="Controller (Xbox One For Windows)">
  327. </joystick>
  328. </MyVideoLibrary>
  329.  
  330. <MyVideoFiles>
  331. </MyVideoFiles>
  332.  
  333. <MyVideoPlaylist>
  334. <joystick name="Controller (Xbox One For Windows)">
  335. <button id="5">Delete</button>
  336. </joystick>
  337. </MyVideoPlaylist>
  338.  
  339. <VirtualKeyboard>
  340. <joystick name="Controller (Xbox One For Windows)">
  341. <button id="2">BackSpace</button>
  342. <button id="4">Symbols</button>
  343. <button id="5">Shift</button>
  344. <button id="9">Enter</button>
  345. <axis id="3">CursorLeft</axis>
  346. <axis id="6">CursorRight</axis>
  347. </joystick>
  348. </VirtualKeyboard>
  349.  
  350. <ContextMenu>
  351. <joystick name="Controller (Xbox One For Windows)">
  352. <button id="2">Close</button>
  353. <button id="3">Close</button>
  354. </joystick>
  355. </ContextMenu>
  356.  
  357. <Scripts>
  358. <joystick name="Controller (Xbox One For Windows)">
  359. <button id="3">ContextMenu</button>
  360. </joystick>
  361. </Scripts>
  362.  
  363. <Settings>
  364. <joystick name="Controller (Xbox One For Windows)">
  365. <button id="2">PreviousMenu</button>
  366. </joystick>
  367. </Settings>
  368.  
  369. <AddonInformation>
  370. <joystick name="Controller (Xbox One For Windows)">
  371. <button id="2">Close</button>
  372. </joystick>
  373. </AddonInformation>
  374.  
  375. <AddonSettings>
  376. <joystick name="Controller (Xbox One For Windows)">
  377. <button id="2">Close</button>
  378. </joystick>
  379. </AddonSettings>
  380.  
  381. <TextViewer>
  382. <joystick name="Controller (Xbox One For Windows)">
  383. <button id="2">Close</button>
  384. </joystick>
  385. </TextViewer>
  386.  
  387. <shutdownmenu>
  388. <joystick name="Controller (Xbox One For Windows)">
  389. <button id="2">PreviousMenu</button>
  390. <button id="9">PreviousMenu</button>
  391. </joystick>
  392. </shutdownmenu>
  393.  
  394. <submenu>
  395. <joystick name="Controller (Xbox One For Windows)">
  396. <button id="2">PreviousMenu</button>
  397. </joystick>
  398. </submenu>
  399.  
  400. <MusicInformation>
  401. <joystick name="Controller (Xbox One For Windows)">
  402. <button id="2">Close</button>
  403. <button id="6">Close</button>
  404. </joystick>
  405. </MusicInformation>
  406.  
  407. <MovieInformation>
  408. <joystick name="Controller (Xbox One For Windows)">
  409. <button id="2">Close</button>
  410. </joystick>
  411. </MovieInformation>
  412.  
  413. <NumericInput>
  414. <joystick name="Controller (Xbox One For Windows)">
  415. <button id="2">BackSpace</button>
  416. <button id="9">Enter</button>
  417. </joystick>
  418. </NumericInput>
  419.  
  420. <GamepadInput>
  421. <joystick name="Controller (Xbox One For Windows)">
  422. <button id="9">Stop</button>
  423. </joystick>
  424. </GamepadInput>
  425.  
  426. <LockSettings>
  427. <joystick name="Controller (Xbox One For Windows)">
  428. <button id="2">PreviousMenu</button>
  429. <button id="9">Close</button>
  430. </joystick>
  431. </LockSettings>
  432.  
  433. <ProfileSettings>
  434. <joystick name="Controller (Xbox One For Windows)">
  435. <button id="2">PreviousMenu</button>
  436. <button id="9">Close</button>
  437. </joystick>
  438. </ProfileSettings>
  439.  
  440. </keymap>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement