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="WiiRemote">
41 <button id="1">Up</button>
42 <button id="2">Down</button>
43 <button id="3">Left</button>
44 <button id="4">Right</button>
45 <button id="5">Select</button>
46 <button id="6">Back</button>
47 <button id="7">VolumeDown</button>
48 <button id="8">XBMC.ActivateWindow(Home)</button>
49 <button id="9">VolumeUp</button>
50 <button id="10">ContextMenu</button>
51 <button id="11">XBMC.ActivateWindow(PlayerControls)</button>
55 <joystick name="WiiRemote">
56 <button id="8">Fullscreen</button>
57 <button id="10">XBMC.ActivateWindow(Favourites)</button>
58 <button id="11">XBMC.ActivateWindow(ShutdownMenu)</button>
62 <joystick name="WiiRemote">
63 <button id="7">Move</button>
64 <button id="9">Copy</button>
65 <button id="11">Highlight</button>
69 <joystick name="WiiRemote">
70 <button id="7">MoveItemUp</button>
71 <button id="9">MoveItemDown</button>
72 <button id="11">Delete</button>
75 <MyMusicPlaylistEditor>
76 <joystick name="WiiRemote">
77 <button id="7">MoveItemUp</button>
78 <button id="9">MoveItemDown</button>
79 <button id="11">Delete</button>
81 </MyMusicPlaylistEditor>
83 <joystick name="WiiRemote">
84 <button id="11">Playlist</button>
88 <joystick name="WiiRemote">
89 <button id="11">Playlist</button>
93 <joystick name="WiiRemote">
94 <button id="1">Pause</button>
95 <button id="2">Stop</button>
96 <button id="3">StepBack</button>
97 <button id="4">StepForward</button>
98 <button id="5">OSD</button>
99 <button id="6">Info</button>
100 <button id="10">CodecInfo</button>
101 <button id="11">AspectRatio</button>
105 <joystick name="WiiRemote">
106 <button id="3">ChannelDown</button>
107 <button id="4">ChannelUp</button>
111 <joystick name="WiiRemote">
112 <button id="5">CodecInfo</button>
116 <joystick name="WiiRemote">
117 <button id="1">Pause</button>
118 <button id="2">Stop</button>
119 <button id="3">SkipNext</button>
120 <button id="4">SkipPrevious</button>
121 <button id="5">OSD</button>
122 <button id="6">Info</button>
123 <button id="8">XBMC.ActivateWindow(music)</button>
124 <button id="10">IncreaseRating</button>
125 <button id="11">DecreaseRating</button>
129 <joystick name="WiiRemote">
130 <button id="10">CodecInfo</button>
131 <button id="11">Info</button>
134 <VisualisationSettings>
135 <joystick name="WiiRemote">
136 <button id="10">XBMC.ActivateWindow(VisualisationPresetList)</button>
137 <button id="11">XBMC.ActivateWindow(MusicPlaylist)</button>
139 </VisualisationSettings>
141 <joystick name="WiiRemote">
142 <button id="1">Pause</button>
143 <button id="2">Stop</button>
144 <button id="3">PreviousPicture</button>
145 <button id="4">NextPicture</button>
146 <button id="5">CodecInfo</button>
147 <button id="6">Info</button>
148 <button id="10">ZoomIn</button>
149 <button id="11">ZoomOut</button>
153 <joystick name="WiiRemote">
154 <button id="5">NextCalibration</button>
155 <button id="10">NextResolution</button>
156 <button id="11">ResetResolution</button>
160 <joystick name="WiiRemote">
161 <button id="5">Select</button>
162 <button id="10">Info</button>
163 <button id="11">AspectRatio</button>
167 <joystick name="WiiRemote">
168 <button id="11">Delete</button>
172 <joystick name="WiiRemote">
173 <button id="11">Playlist</button>
177 <joystick name="WiiRemote">
178 <button id="11">Playlist</button>
182 <joystick name="WiiRemote">
183 <button id="7">MoveItemDown</button>
184 <button id="9">MoveItemUp</button>
185 <button id="11">Delete</button>
189 <joystick name="WiiRemote">
190 <button id="6">Shift</button>
191 <button id="7">CursorLeft</button>
192 <button id="9">CursorRight</button>
193 <button id="10">Symbols</button>
194 <button id="11">BackSpace</button>
198 <joystick name="WiiRemote">
199 <button id="11">info</button>
203 <joystick name="WiiRemote">
204 <button id="7">SkipPrevious</button>
205 <button id="9">SkipNext</button>
206 <button id="10">Enter</button>
207 <button id="11">BackSpace</button>
211 <joystick name="WiiRemote">
212 <button id="3">PreviousPicture</button>
213 <button id="4">NextPicture</button>