Advertisement
Guest User

Untitled

a guest
Nov 28th, 2012
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 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. <keymap>
  38. <global>
  39. <joystick name="Controller (XBOX 360 For Windows)">
  40. <button id="1">Select</button> <!-- A -->
  41. <button id="2">Back</button> <!-- B -->
  42. <button id="3"></button> <!-- X -->
  43. <button id="4"></button> <!-- Y -->
  44. <button id="5"></button> <!-- LB -->
  45. <button id="6"></button> <!-- RB -->
  46. <button id="7"></button> <!-- ? -->
  47. <button id="8"></button> <!-- ? -->
  48. <button id="9">XBMC.ActivateWindow(PlayerControls)</button>
  49. <button id="10"/>
  50. <button id="11">Up</button>
  51. <button id="12">Down</button>
  52. <button id="13">Left</button>
  53. <button id="14">Right</button>
  54. <button id="15"></button>
  55. <button id="16"></button>
  56. <button id="17">PreviousMenu</button>
  57. <axis limit="-1" id="5">VolumeUp</axis>
  58. <axis limit="+1" id="5">VolumeDown</axis>
  59. <axis limit="-1" id="4">AnalogSeekBack</axis>
  60. <axis limit="+1" id="4">AnalogSeekForward</axis>
  61. <axis limit="0" id="3">ScrollUp</axis>
  62. <axis limit="0" id="6">ScrollDown</axis>
  63. </joystick>
  64. </global>
  65. </keymap>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement