1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC -->
3 <!-- The <global> section is a fall through - they will only be used if the button is not -->
4 <!-- used in the current window's section. Note that there is only handling -->
5 <!-- for a single action per button at this stage. -->
6 <!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox -->
9 <!-- The format is: -->
11 <!-- <button>action</button> -->
14 <!-- To map keys from other remotes using the RCA protocol, you may add <universalremote> blocks -->
15 <!-- In this case, the tags used are <obc#> where # is the original button code (OBC) of the key -->
16 <!-- You set it up by adding a <universalremote> block to the window or <global> section: -->
17 <!-- <universalremote> -->
18 <!-- <obc45>Stop</obc45> -->
19 <!-- </universalremote> -->
21 <!-- Note that the action can be a built-in function. -->
22 <!-- eg <B>XBMC.ActivateWindow(MyMusic)</B> -->
23 <!-- would automatically go to My Music on the press of the B button. -->
25 <!-- Joysticks / Gamepads: -->
26 <!-- See the sample PS3 controller configuration below for the format. -->
28 <!-- Joystick Name: -->
29 <!-- Do 'cat /proc/bus/input/devices' or see your xbmc log file to find the names of -->
30 <!-- detected joysticks. The name used in the configuration should match the detected name. -->
33 <!-- 'id' is the button ID used by SDL. Joystick button ids of connected joysticks appear -->
34 <!-- in xbmc.log when they are pressed. Use your log to map custom buttons to actions. -->
36 <!-- Axis Ids / Analog Controls -->
40 <joystick name="STD AxisPad">
41 <altname>Interact AxisPad</altname>
42 <button id="1">FullScreen</button> <!--square -->
43 <button id="3">Select</button> <!--x -->
44 <button id="4">Back</button> <!--circle -->
45 <button id="2">Queue</button> <!-- tri -->
46 <button id="5">PreviousMenu</button> <!-- l1 -->
47 <button id="7"></button> <!-- l2 -->
48 <button id="9">Screenshot</button> <!-- l3 - left analog -->
49 <button id="6"></button> <!-- r1 -->
50 <button id="8"></button> <!-- r2 -->
51 <button id="10">PreviousMenu</button> <!-- R3 - right analog -->
52 <button id="11"></button> <!-- select/Escape -->
53 <button id="12">XBMC.ActivateWindow(PlayerControls)</button> <!-- start/enter -->
54 <button id="20"></button> <!-- Toggle Switch-->
55 <!-- Left Analog Left and Right-->
56 <axis limit="-1" id="0">AnalogSeekBack</axis>
57 <axis limit="+1" id="0">AnalogSeekForward</axis>
58 <!-- Left Analog Up and Down-->
59 <axis limit="-1" id="1">ScrollUp</axis>
60 <axis limit="+1" id="1">ScrollDown</axis>
61 <!-- Right Analog Up and Down -->
62 <axis limit="-1" id="2">VolumeUp</axis>
63 <axis limit="+1" id="2">VolumeDown</axis>
64 <!-- Left Analog Left and Right-->
65 <axis limit="-1" id="3"></axis>
66 <axis limit="+1" id="3"></axis>
67 <!-- Hat Axises, unused -->
68 <axis limit="+1" id="4">Right</axis>
69 <axis limit="-1" id="4">Left</axis>
70 <axis limit="-1" id="5">Up</axis>
71 <axis limit="+1" id="5">Down</axis>
73 <hat id="1" position="left">Left</hat>
74 <hat id="1" position="right">Right</hat>
75 <hat id="1" position="up">Up</hat>
76 <hat id="1" position="down">Down</hat>