Advertisement
backstander

joystick.Microsoft.Xbox.360.Controller.xml

Aug 27th, 2016
2,543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.98 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- This file contains the mappings for a Microsoft Xbox 360 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 360 Wireless Receiver                  -->
  21.  
  22. <!-- Linux alterations for default Xpad Driver -->
  23.  
  24. <!-- Button Mappings in Linux:                 -->
  25. <!--                                           -->
  26. <!-- ID              Button                    -->
  27. <!--                                           -->
  28. <!-- 1               A                         -->
  29. <!-- 2               B                         -->
  30. <!-- 3               X                         -->
  31. <!-- 4               Y                         -->
  32. <!-- 5               Left Shoulder             -->
  33. <!-- 6               Right Shoulder            -->
  34. <!-- 7               Left Trigger              -->
  35. <!-- 8               Right Trigger             -->
  36. <!-- 9               Back                      -->
  37. <!-- 10              Start                     -->
  38. <!-- 11              Guide                     -->
  39. <!-- 12              Left Stick Button         -->
  40. <!-- 13              Right Stick Button        -->
  41. <!-- 14              D-Pad Left                -->
  42. <!-- 15              D-Pad Right               -->
  43. <!-- 16              D-Pad Up                  -->
  44. <!-- 17              D-Pad Down                -->
  45.  
  46. <!-- Axis Mappings:                     -->
  47. <!--                                    -->
  48. <!-- ID              Button             -->
  49. <!--                                    -->
  50. <!-- 1 limit +1      Left Stick Right   -->
  51. <!-- 1 limit -1      Left Stick Left    -->
  52. <!-- 2 limit +1      Left Stick Down    -->
  53. <!-- 2 limit -1      Left Stick Up      -->
  54. <!-- 3 limit +1      Right Stick Right  -->
  55. <!-- 3 limit -1      Right Stick Left   -->
  56. <!-- 4 limit +1      Right Stick Down   -->
  57. <!-- 4 limit -1      Right Stick Up     -->
  58.  
  59. <!-- Hat Mappings for some drivers:   -->
  60. <!--                                  -->
  61. <!-- ID  Position    Button           -->
  62. <!--                                  -->
  63. <!-- 1   up          D-Pad Up         -->
  64. <!-- 1   down        D-Pad Down       -->
  65. <!-- 1   left        D-Pad Left       -->
  66. <!-- 1   right       D-Pad Right      -->
  67.  
  68. <keymap>
  69.   <global>
  70.     <joystick name="Xbox 360 Wireless Receiver (XBOX)">
  71.       <!-- A selects. B goes back. X gets context menu. Y goes fullscreen and back. -->
  72.       <button id="1">Select</button>  <!-- A -->
  73.       <button id="2">Back</button>  <!-- B -->
  74.       <button id="3">ContextMenu</button>  <!-- X -->
  75.       <button id="4">FullScreen</button>  <!-- Y -->
  76.       <!--Left Shoulder Queues videos. Right shoulder displays the current queue. -->
  77.       <button id="5">Queue</button>  <!-- left shoulder -->
  78.       <button id="6">Playlist</button>  <!-- right shoulder -->
  79.       <button id="7">ScrollUp</button>  <!-- left trigger -->
  80.       <button id="8">ScrollDown</button>  <!-- right trigger -->
  81.       <button id="9">PreviousMenu</button>  <!-- back -->
  82.       <!-- Guide button activates the shutdown menu. -->
  83.       <button id="11">ActivateWindow(ShutdownMenu)</button>  <!-- guide -->
  84.       <button id="10">ActivateWindow(Home)</button>  <!-- start -->
  85.       <button id="12"></button>  <!-- left stick -->
  86.       <button id="13">ActivateWindow(PlayerControls)</button>  <!-- right stick -->
  87.       <button id="14">AnalogSeekBack</button>  <!-- d-pad left -->
  88.       <button id="15">AnalogSeekForward</button>  <!-- d-pad right -->
  89.       <button id="16">VolumeUp</button>  <!-- d-pad up -->
  90.       <button id="17">VolumeDown</button>  <!-- d-pad down -->
  91.  
  92.       <axis id="1" limit="-1">Left</axis>  <!-- left stick left -->
  93.       <axis id="1" limit="+1">Right</axis>  <!-- left stick right -->
  94.       <axis id="2" limit="-1">Up</axis>  <!-- left stick up -->
  95.       <axis id="2" limit="+1">Down</axis>  <!-- left stick down -->
  96.  
  97.       <!-- Push up on the right stick for volume up. Push down for volume down. -->
  98.       <axis id="4" limit="+1">VolumeDown</axis> <!-- right stick down -->
  99.       <axis id="4" limit="-1">VolumeUp</axis> <!-- right stick up -->
  100.     </joystick>
  101.   </global>
  102.   <FullscreenVideo>
  103.     <joystick name="Xbox 360 Wireless Receiver (XBOX)">
  104.       <!--
  105.            A pauses and starts the video.
  106.            B stops the video.
  107.            X opens the onscreen display.
  108.            -->
  109.       <button id="1">Pause</button>  <!-- A -->
  110.       <button id="2">Stop</button>  <!-- B -->
  111.       <button id="3">OSD</button>  <!-- X -->
  112.       <!--
  113.            Left stick changes aspect ratio.
  114.            Back changes subtitles.
  115.            Right stick changes Audio Language.
  116.            Y displays info.
  117.            -->
  118.       <button id="12">AspectRatio</button>  <!-- left stick -->
  119.       <button id="9">ShowSubtitles</button>  <!-- back -->
  120.       <button id="7">Seek(-7)</button>  <!-- left trigger -->
  121.       <button id="4">Info</button>  <!-- Y -->
  122.       <button id="10">ActivateWindow(Home)</button>  <!-- start -->
  123.       <button id="11">ActivateWindow(ShutdownMenu)</button>  <!-- guide -->
  124.       <button id="13">AudioNextLanguage</button>  <!-- right stick -->
  125.       <button id="14">StepBack</button>  <!-- d-pad left -->
  126.       <button id="15">StepForward</button>  <!-- d-pad right -->
  127.       <button id="16">ChapterOrBigStepForward</button>  <!-- d-pad up -->
  128.       <button id="17">ChapterOrBigStepBack</button>  <!-- d-pad down -->
  129.       <!-- Shoulders fast forward and rewind. -->
  130.       <button id="5">AnalogRewind</button>  <!-- left shoulder -->
  131.       <button id="6">AnalogFastForward</button>  <!-- right shoulder -->
  132.       <!-- D-Pad scans forward and back and volume up and down. -->
  133.       <hat id="1" position="up">ChapterOrBigStepForward</hat>
  134.       <hat id="1" position="down">ChapterOrBigStepBack</hat>
  135.       <hat id="1" position="left">StepBack</hat>
  136.       <hat id="1" position="right">StepForward</hat>
  137.     </joystick>
  138.   </FullscreenVideo>
  139. </keymap>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement