Advertisement
Guest User

RetroPlayer PS3 Controller Keymap

a guest
Sep 22nd, 2013
3,010
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.27 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>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 <B>XBMC.ActivateWindow(MyMusic)</B>                         -->
  22. <!-- would automatically go to My Music on the press of the B button. -->
  23.  
  24. <!-- Joysticks / Gamepads:                                                                    -->
  25. <!--   See the sample PS3 controller configuration below for the format.                      -->
  26. <!--                                                                                          -->
  27. <!--  Joystick Name:                                                                          -->
  28. <!--   Do 'cat /proc/bus/input/devices' or see your xbmc log file  to find the names of       -->
  29. <!--   detected joysticks. The name used in the configuration should match the detected name. -->
  30. <!--                                                                                          -->
  31. <!--  Button Ids:                                                                             -->
  32. <!--   'id' is the button ID used by SDL. Joystick button ids of connected joysticks appear   -->
  33. <!--   in xbmc.log when they are pressed. Use your log to map custom buttons to actions.      -->
  34. <!--                                                                                          -->
  35. <!--  Axis Ids / Analog Controls                                                              -->
  36. <!--   Coming soon.                                                                           -->
  37.  
  38. <keymap>
  39.   <global>
  40.     <joystick name="Sony PLAYSTATION(R)3 Controller">
  41.       <altname>PLAYSTATION(R)3 Controller</altname>
  42.       <altname>PS3 Controller</altname>
  43.       <altname>Sony Computer Entertainment Wireless Controller</altname>
  44.       <button id="15">Select</button>
  45.       <button id="14">Back</button>
  46.       <button id="16">FullScreen</button>
  47.       <button id="13">Queue</button>
  48.       <button id="11">PreviousMenu</button>
  49.       <button id="8">Left</button>
  50.       <button id="6">Right</button>
  51.       <button id="5">Up</button>
  52.       <button id="7">Down</button>
  53.       <button id="2">Screenshot</button>
  54.       <button id="3">XBMC.ActivateWindow(ShutdownMenu)</button>
  55.       <button id="4">XBMC.ActivateWindow(PlayerControls)</button>
  56.       <axis limit="+1" id="4">VolumeDown</axis>
  57.       <axis limit="-1" id="4">VolumeUp</axis>
  58.       <axis limit="+1" id="1">AnalogSeekForward</axis>
  59.       <axis limit="-1" id="1">AnalogSeekBack</axis>
  60.       <axis limit="+1" id="13">ScrollUp</axis>
  61.       <axis limit="+1" id="14">ScrollDown</axis>
  62.     </joystick>
  63.   </global>
  64.   <FullscreenGame>
  65.     <joystick name="Sony PLAYSTATION(R)3 Controller">
  66.       <altname>PLAYSTATION(R)3 Controller</altname>
  67.       <altname>PS3 Controller</altname>
  68.       <altname>Sony Computer Entertainment Wireless Controller</altname>      <button id="1">JoypadA</button>
  69.       <button id="17">PreviousMenu</button>      
  70.       <button id="14">JoypadA</button>
  71.       <button id="15">JoypadB</button>
  72.       <button id="13">JoypadX</button>
  73.       <button id="16">JoypadY</button>
  74.       <button id="11">JoypadL</button>
  75.       <button id="12">JoypadR</button>
  76.       <button id="1">JoypadSelect</button>
  77.       <button id="4">JoypadStart</button>
  78.       <button id="2">JoypadL3</button>  <!-- left stick -->
  79.       <button id="3">JoypadR3</button>  <!-- right stick -->
  80.       <button id="5">JoypadUp</button>
  81.       <button id="7">JoypadDown</button>
  82.       <button id="8">JoypadLeft</button>
  83.       <button id="6">JoypadRight</button>
  84.       <axis id="1" limit="-1">AnalogStickLeftX</axis>
  85.       <axis id="1" limit="+1">AnalogStickLeftX</axis>
  86.       <axis id="2" limit="-1">AnalogStickLeftY</axis>
  87.       <axis id="2" limit="+1">AnalogStickLeftY</axis>
  88.       <axis id="3" limit="+1">AnalogStickRightX</axis>
  89.       <axis id="3" limit="-1">AnalogStickRightX</axis>
  90.       <axis id="4" limit="+1">AnalogStickRightY</axis>
  91.       <axis id="4" limit="-1">AnalogStickRightY</axis>
  92.       <axis id="13" limit="+1">JoypadL2</axis>
  93.       <axis id="14" limit="-1">JoypadR2</axis>
  94.     </joystick>
  95.   </FullscreenGame>
  96. </keymap>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement