Advertisement
lamb0985

xbox360controllerkodixml

Feb 4th, 2016
623
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.04 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.  
  89. <!-- Push up on the right stick for volueme up. Push down for volume down. -->
  90. <axis id="5" limit="-1">VolumeUp</axis>
  91. <axis id="5" limit="+1">VolumeDown</axis>
  92. <axis id="4" limit="-1">VolumeDown</axis>
  93. <axis id="4" limit="+1">VolumeUp</axis>
  94. <hat id="1" position="up">Up</hat>
  95. <hat id="1" position="down">Down</hat>
  96. <hat id="1" position="left">Left</hat>
  97. <hat id="1" position="right">Right</hat>
  98. </joystick>
  99. </global>
  100.  
  101. <Home>
  102. <joystick name="Controller (Xbox One For Windows)">
  103. <button id="8">Skin.ToggleSetting(HomeViewToggle)</button>
  104. <axis id="3" trigger="true" rest="0">Left</axis>
  105. <axis id="6" trigger="true" rest="0">Right</axis>
  106. </joystick>
  107. </Home>
  108.  
  109. <MyFiles>
  110. <joystick name="Controller (Xbox One For Windows)">
  111. <button id="6">Highlight</button>
  112. </joystick>
  113. </MyFiles>
  114.  
  115. <MyMusicPlaylist>
  116. <joystick name="Controller (Xbox One For Windows)">
  117. <button id="5">Delete</button>
  118. </joystick>
  119. </MyMusicPlaylist>
  120.  
  121. <MyMusicFiles>
  122. </MyMusicFiles>
  123.  
  124. <MyMusicLibrary>
  125. <joystick name="Controller (Xbox One For Windows)">
  126. <button id="4">Queue</button>
  127. <button id="6">Info</button>
  128. </joystick>
  129. </MyMusicLibrary>
  130.  
  131. <FullscreenVideo>
  132. <joystick name="Controller (Xbox One For Windows)">
  133. <!--
  134. A pauses and starts the video.
  135. B stops the video.
  136. X opens the onscreen display.
  137. Y switches in and out of full screen
  138. -->
  139. <button id="1">Pause</button>
  140. <button id="2">Stop</button>
  141. <button id="3">OSD</button>
  142. <!--
  143. Left shoulder changes aspect ratio.
  144. Right shoulder changes subtitles.
  145. Right stick changes Audio Language.
  146. Start button displays info.
  147. -->
  148. <button id="5">AspectRatio</button>
  149. <button id="6">ShowSubtitles</button>
  150. <button id="7">Seek(-7)</button><!-- Replaces smallstepback -->
  151. <button id="8">Info</button>
  152. <button id="10">AudioNextLanguage</button>
  153. <button id="11">ChapterOrBigStepForward</button>
  154. <button id="12">ChapterOrBigStepBack</button>
  155. <button id="13">StepBack</button>
  156. <button id="14">StepForward</button>
  157. <!-- D-pad does what you'd expect. Triggers fast forward and rewind. Left stick scans forward and back. -->
  158. <axis id="3">AnalogRewind</axis>
  159. <axis id="6">AnalogFastForward</axis>
  160. <hat id="1" position="up">ChapterOrBigStepForward</hat>
  161. <hat id="1" position="down">ChapterOrBigStepBack</hat>
  162. <hat id="1" position="left">StepBack</hat>
  163. <hat id="1" position="right">StepForward</hat>
  164. </joystick>
  165. </FullscreenVideo>
  166.  
  167. <FullscreenLiveTV>
  168. <joystick name="Controller (Xbox One For Windows)">
  169. <button id="11">ChannelUp</button>
  170. <button id="12">ChannelDown</button>
  171. <button id="13">StepBack</button>
  172. <button id="14">StepForward</button>
  173. <hat id="1" position="up">ChannelUp</hat>
  174. <hat id="1" position="down">ChannelDown</hat>
  175. <hat id="1" position="left">StepBack</hat>
  176. <hat id="1" position="right">StepForward</hat>
  177. </joystick>
  178. </FullscreenLiveTV>
  179.  
  180. <FullscreenRadio>
  181. <joystick name="Controller (Xbox One For Windows)">
  182. <button id="11">ChannelUp</button>
  183. <button id="12">ChannelDown</button>
  184. <button id="13">StepBack</button>
  185. <button id="14">StepForward</button>
  186. <hat id="1" position="up">ChannelUp</hat>
  187. <hat id="1" position="down">ChannelDown</hat>
  188. <hat id="1" position="left">StepBack</hat>
  189. <hat id="1" position="right">StepForward</hat>
  190. </joystick>
  191. </FullscreenRadio>
  192.  
  193. <FullscreenInfo>
  194. <joystick name="Controller (Xbox One For Windows)">
  195. <button id="2">Close</button>
  196. <button id="3">OSD</button>
  197. <button id="8">Close</button>
  198. <axis id="3">AnalogRewind</axis>
  199. <axis id="6">AnalogFastForward</axis>
  200. </joystick>
  201. </FullscreenInfo>
  202.  
  203. <PlayerControls>
  204. <joystick name="Controller (Xbox One For Windows)">
  205. <button id="3">Close</button>
  206. <button id="9">Close</button>
  207. <button id="10">Close</button>
  208. </joystick>
  209. </PlayerControls>
  210.  
  211. <Visualisation>
  212. <joystick name="Controller (Xbox One For Windows)">
  213. <button id="1">Pause</button>
  214. <button id="2">Stop</button>
  215. <button id="3">ActivateWindow(MusicOSD)</button>
  216. <button id="5">ActivateWindow(VisualisationPresetList)</button>
  217. <button id="6">Info</button>
  218. <button id="10">ActivateWindow(MusicOSD)</button>
  219. <button id="11">SkipNext</button>
  220. <button id="12">SkipPrevious</button>
  221. <button id="13">PreviousPreset</button>
  222. <button id="14">NextPreset</button>
  223. <axis id="3">AnalogRewind</axis>
  224. <axis id="6">AnalogFastForward</axis>
  225. <hat id="1" position="up">SkipNext</hat>
  226. <hat id="1" position="down">SkipPrevious</hat>
  227. <hat id="1" position="left">StepBack</hat>
  228. <hat id="1" position="right">StepForward</hat>
  229. </joystick>
  230. </Visualisation>
  231.  
  232. <MusicOSD>
  233. <joystick name="Controller (Xbox One For Windows)">
  234. <button id="3">Close</button>
  235. <button id="6">Info</button>
  236. </joystick>
  237. </MusicOSD>
  238.  
  239. <VisualisationSettings>
  240. <joystick name="Controller (Xbox One For Windows)">
  241. <button id="2">Close</button>
  242. </joystick>
  243. </VisualisationSettings>
  244.  
  245. <VisualisationPresetList>
  246. <joystick name="Controller (Xbox One For Windows)">
  247. <button id="2">Close</button>
  248. </joystick>
  249. </VisualisationPresetList>
  250.  
  251. <SlideShow>
  252. <joystick name="Controller (Xbox One For Windows)">
  253. <button id="1">Pause</button>
  254. <button id="2">Stop</button>
  255. <button id="4">ZoomNormal</button>
  256. <button id="5">Rotate</button>
  257. <button id="6">CodecInfo</button>
  258. <button id="11">ZoomIn</button>
  259. <button id="12">ZoomOut</button>
  260. <button id="13">PreviousPicture</button>
  261. <button id="14">NextPicture</button>
  262. <axis id="1">AnalogMoveX</axis>
  263. <axis id="2">AnalogMoveY</axis>
  264. <axis id="3">ZoomOut</axis>
  265. <axis id="6">ZoomIn</axis>
  266. <hat id="1" position="up">ZoomIn</hat>
  267. <hat id="1" position="down">ZoomOut</hat>
  268. <hat id="1" position="left">PreviousPicture</hat>
  269. <hat id="1" position="right">NextPicture</hat>
  270. </joystick>
  271. </SlideShow>
  272.  
  273. <ScreenCalibration>
  274. <joystick name="Controller (Xbox One For Windows)">
  275. <button id="3">ResetCalibration</button>
  276. <button id="5">NextResolution</button>
  277. <button id="6">NextCalibration</button>
  278. </joystick>
  279. </ScreenCalibration>
  280.  
  281. <GUICalibration>
  282. <joystick name="Controller (Xbox One For Windows)">
  283. <button id="3">ResetCalibration</button>
  284. <button id="5">NextResolution</button>
  285. <button id="6">NextCalibration</button>
  286. </joystick>
  287. </GUICalibration>
  288.  
  289. <VideoOSD>
  290. <joystick name="Controller (Xbox One For Windows)">
  291. <button id="3">Close</button>
  292. </joystick>
  293. </VideoOSD>
  294.  
  295. <VideoMenu>
  296. <joystick name="Controller (Xbox One For Windows)">
  297. <button id="2">Stop</button>
  298. <button id="3">OSD</button>
  299. <button id="5">AspectRatio</button>
  300. <button id="8">Info</button>
  301. </joystick>
  302. </VideoMenu>
  303.  
  304. <OSDVideoSettings>
  305. <joystick name="Controller (Xbox One For Windows)">
  306. <button id="5">AspectRatio</button>
  307. <button id="3">Close</button>
  308. </joystick>
  309. </OSDVideoSettings>
  310.  
  311. <OSDAudioSettings>
  312. <joystick name="Controller (Xbox One For Windows)">
  313. <button id="5">AspectRatio</button>
  314. <button id="3">Close</button>
  315. </joystick>
  316. </OSDAudioSettings>
  317.  
  318. <VideoBookmarks>
  319. <joystick name="Controller (Xbox One For Windows)">
  320. <button id="5">Delete</button>
  321. </joystick>
  322. </VideoBookmarks>
  323.  
  324. <MyVideoLibrary>
  325. <joystick name="Controller (Xbox One For Windows)">
  326. </joystick>
  327. </MyVideoLibrary>
  328.  
  329. <MyVideoFiles>
  330. </MyVideoFiles>
  331.  
  332. <MyVideoPlaylist>
  333. <joystick name="Controller (Xbox One For Windows)">
  334. <button id="5">Delete</button>
  335. </joystick>
  336. </MyVideoPlaylist>
  337.  
  338. <VirtualKeyboard>
  339. <joystick name="Controller (Xbox One For Windows)">
  340. <button id="2">BackSpace</button>
  341. <button id="4">Symbols</button>
  342. <button id="5">Shift</button>
  343. <button id="9">Enter</button>
  344. <axis id="3">CursorLeft</axis>
  345. <axis id="6">CursorRight</axis>
  346. </joystick>
  347. </VirtualKeyboard>
  348.  
  349. <ContextMenu>
  350. <joystick name="Controller (Xbox One For Windows)">
  351. <button id="2">Close</button>
  352. <button id="3">Close</button>
  353. </joystick>
  354. </ContextMenu>
  355.  
  356. <Scripts>
  357. <joystick name="Controller (Xbox One For Windows)">
  358. <button id="3">ContextMenu</button>
  359. </joystick>
  360. </Scripts>
  361.  
  362. <Settings>
  363. <joystick name="Controller (Xbox One For Windows)">
  364. <button id="2">PreviousMenu</button>
  365. </joystick>
  366. </Settings>
  367.  
  368. <AddonInformation>
  369. <joystick name="Controller (Xbox One For Windows)">
  370. <button id="2">Close</button>
  371. </joystick>
  372. </AddonInformation>
  373.  
  374. <AddonSettings>
  375. <joystick name="Controller (Xbox One For Windows)">
  376. <button id="2">Close</button>
  377. </joystick>
  378. </AddonSettings>
  379.  
  380. <TextViewer>
  381. <joystick name="Controller (Xbox One For Windows)">
  382. <button id="2">Close</button>
  383. </joystick>
  384. </TextViewer>
  385.  
  386. <shutdownmenu>
  387. <joystick name="Controller (Xbox One For Windows)">
  388. <button id="2">PreviousMenu</button>
  389. <button id="9">PreviousMenu</button>
  390. </joystick>
  391. </shutdownmenu>
  392.  
  393. <submenu>
  394. <joystick name="Controller (Xbox One For Windows)">
  395. <button id="2">PreviousMenu</button>
  396. </joystick>
  397. </submenu>
  398.  
  399. <MusicInformation>
  400. <joystick name="Controller (Xbox One For Windows)">
  401. <button id="2">Close</button>
  402. <button id="6">Close</button>
  403. </joystick>
  404. </MusicInformation>
  405.  
  406. <MovieInformation>
  407. <joystick name="Controller (Xbox One For Windows)">
  408. <button id="2">Close</button>
  409. </joystick>
  410. </MovieInformation>
  411.  
  412. <NumericInput>
  413. <joystick name="Controller (Xbox One For Windows)">
  414. <button id="2">BackSpace</button>
  415. <button id="9">Enter</button>
  416. </joystick>
  417. </NumericInput>
  418.  
  419. <GamepadInput>
  420. <joystick name="Controller (Xbox One For Windows)">
  421. <button id="9">Stop</button>
  422. </joystick>
  423. </GamepadInput>
  424.  
  425. <LockSettings>
  426. <joystick name="Controller (Xbox One For Windows)">
  427. <button id="2">PreviousMenu</button>
  428. <button id="9">Close</button>
  429. </joystick>
  430. </LockSettings>
  431.  
  432. <ProfileSettings>
  433. <joystick name="Controller (Xbox One For Windows)">
  434. <button id="2">PreviousMenu</button>
  435. <button id="9">Close</button>
  436. </joystick>
  437. </ProfileSettings>
  438.  
  439. </keymap>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement