/system/keymaps/joystick.Alienware.Dual.Compatible.Controller.xml

http://github.com/xbmc/xbmc · XML · 79 lines · 34 code · 4 blank · 41 comment · 0 complexity · 70aeb7e650ce63999763e02535324003 MD5 · raw file

  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. <!-- The format is: -->
  8. <!-- <device> -->
  9. <!-- <button>action</button> -->
  10. <!-- </device> -->
  11. <!-- To map keys from other remotes using the RCA protocol, you may add <universalremote> blocks -->
  12. <!-- In this case, the tags used are <obc#> where # is the original button code (OBC) of the key -->
  13. <!-- You set it up by adding a <universalremote> block to the window or <global> section: -->
  14. <!-- <universalremote> -->
  15. <!-- <obc45>Stop</obc45> -->
  16. <!-- </universalremote> -->
  17. <!-- Note that the action can be a built-in function. -->
  18. <!-- eg <B>XBMC.ActivateWindow(MyMusic)</B> -->
  19. <!-- would automatically go to My Music on the press of the B button. -->
  20. <!-- Joysticks / Gamepads: -->
  21. <!-- See the sample PS3 controller configuration below for the format. -->
  22. <!-- -->
  23. <!-- Joystick Name: -->
  24. <!-- Do 'cat /proc/bus/input/devices' or see your xbmc log file to find the names of -->
  25. <!-- detected joysticks. The name used in the configuration should match the detected name. -->
  26. <!-- -->
  27. <!-- Button Ids: -->
  28. <!-- 'id' is the button ID used by SDL. Joystick button ids of connected joysticks appear -->
  29. <!-- in xbmc.log when they are pressed. Use your log to map custom buttons to actions. -->
  30. <!-- -->
  31. <!-- Axis Ids / Analog Controls -->
  32. <!-- Coming soon. -->
  33. <keymap>
  34. <global>
  35. <!-- left analog is treated as hat when alien eyes are unlit-->
  36. <!-- right analog is treated as buttons 1 to 4 in a counter -->
  37. <!-- clockwise motion with 1 being on the left when eyes are unlit-->
  38. <joystick name="Alienware Alienware Dual Compatible Game Pad">
  39. <button id="1">FullScreen</button> <!--square -->
  40. <button id="2">Select</button> <!--x -->
  41. <button id="3">Back</button> <!--circle -->
  42. <button id="4">Queue</button> <!-- tri -->
  43. <button id="6">PreviousMenu</button> <!-- l1 -->
  44. <button id="7"></button> <!-- l2 -->
  45. <button id="11">Screenshot</button> <!-- l3 - left analog -->
  46. <button id="5"></button> <!-- r1 -->
  47. <button id="8"></button> <!-- r2 -->
  48. <button id="12">XBMC.ActivateWindow(ShutdownMenu)</button> <!-- R3 - right analog -->
  49. <button id="9"></button> <!-- select -->
  50. <button id="10">XBMC.ActivateWindow(PlayerControls)</button> <!-- start -->
  51. <!-- Left Analog Left and Right-->
  52. <axis limit="-1" id="0">AnalogSeekBack</axis>
  53. <axis limit="+1" id="0">AnalogSeekForward</axis>
  54. <!-- Left Analog Up and Down-->
  55. <axis limit="+1" id="1">ScrollDown</axis>
  56. <axis limit="-1" id="1">ScrollUp</axis>z`
  57. <!-- Right Analog Up and Down -->
  58. <axis limit="-1" id="2">VolumeUp</axis>
  59. <axis limit="+1" id="2">VolumeDown</axis>
  60. <!-- Left Analog Left and Right-->
  61. <axis limit="-1" id="3"></axis>
  62. <axis limit="+1" id="3"></axis>
  63. <!-- Hat Axises, unused -->
  64. <axis limit="+1" id="4">Right</axis>
  65. <axis limit="-1" id="4">Left</axis>
  66. <axis limit="-1" id="5">Up</axis>
  67. <axis limit="+1" id="5">Down</axis>
  68. <!-- Hat -->
  69. <hat id="1" position="left">Left</hat>
  70. <hat id="1" position="right">Right</hat>
  71. <hat id="1" position="up">Up</hat>
  72. <hat id="1" position="down">Down</hat>
  73. </joystick>
  74. </global>
  75. </keymap>