fixed: Apple remote keymapping in Music playlist editor was wrong
[xbmc:xbmc-antiquated.git] / system / keymaps / joystick.AppleRemote.xml
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 <!-- To find out the OBC's of your remote, try enabling the <displayremotecodes> tag in AdvancedSettings.xml -->
20
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. -->
24
25 <!-- Joysticks / Gamepads:                                                                    -->
26 <!--   See the sample PS3 controller configuration below for the format.                      -->
27 <!--                                                                                          -->
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. -->
31 <!--                                                                                          -->
32 <!--  Button Ids:                                                                             -->
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.      -->
35 <!--                                                                                          -->
36 <!--  Axis Ids / Analog Controls                                                              -->
37 <!--   Coming soon.                                                                           -->
38 <keymap>
39   <global>
40     <joystick name="AppleRemote">
41       <!-- plus       -->      <button id="1">Up</button>
42       <!-- minus      -->      <button id="2">Down</button>
43       <!-- left       -->      <button id="3">Left</button>
44       <!-- right      -->      <button id="4">Right</button>
45       <!-- center     -->      <button id="5">Select</button>
46       <!-- menu       -->      <button id="6">PreviousMenu</button>
47       <!-- hold center  -->    <button id="7">Fullscreen</button>
48       <!-- hold menu  -->      <button id="8">ContextMenu</button>
49       <!-- old buttons for ATV <2.2, used on OSX  -->
50       <!-- hold left  -->      <button id="9">Left</button>
51       <!-- hold right -->      <button id="10">Right</button>
52       <!-- new aluminium remote buttons  -->
53       <!-- play  -->           <button id="12">Play</button>
54       <!-- play hold -->       <button id="13">ContextMenu</button>
55       <!-- Learned remote buttons (ATV >2.3) -->
56       <!-- Play -->      <button id="70">Play</button>
57       <!-- Pause -->      <button id="71">Pause</button>
58       <!-- Stop -->      <button id="72">Stop</button>
59       <!-- Previous -->      <button id="73">SkipPrevious</button>
60       <!-- Next -->      <button id="74">SkipNext</button>
61       <!-- Rewind -->      <button id="75">Rewind</button>
62       <!-- Forward -->      <button id="76">FastForward</button>
63       <!-- Return -->      <button id="77">OSD</button>
64       <!-- Enter -->      <button id="78">ShowVideoMenu</button>
65       <!-- few gestures from Apple's iPhone Remote (ATV > 2.3 ?) -->
66       <!-- SwipeLeft  -->      <button id="80">Left</button>
67       <!-- SwipeRight  -->      <button id="81">Right</button>
68       <!-- SwipeUp  -->      <button id="82">Up</button>
69       <!-- SwipeDown  -->      <button id="83">Down</button>
70     </joystick>
71   </global>
72   <Home>
73     <joystick name="AppleRemote">
74       <button id="6">XBMC.ActivateWindow(Favourites)</button>
75       <button id="8">ActivateWindow(shutdownmenu)</button>
76     </joystick>
77   </Home>
78   <Favourites>
79     <joystick name="AppleRemote">
80       <button id="6">Close</button>
81     </joystick>
82   </Favourites>
83   <MyPictures>
84     <joystick name="AppleRemote">
85       <button id="6">ParentDir</button>
86     </joystick>
87   </MyPictures>
88   <MyMusicPlaylist>
89     <joystick name="AppleRemote">
90       <button id="6">Playlist</button>
91     </joystick>
92   </MyMusicPlaylist>
93   <MyMusicPlaylistEditor>
94     <joystick name="AppleRemote">
95       <button id="6">ParentDir</button>
96     </joystick>
97   </MyMusicPlaylistEditor>
98   <MyMusicFiles>
99     <joystick name="AppleRemote">
100       <button id="6">ParentDir</button>
101     </joystick>
102   </MyMusicFiles>
103   <MyMusicLibrary>
104     <joystick name="AppleRemote">
105       <button id="6">ParentDir</button>
106     </joystick>
107   </MyMusicLibrary>
108   <FullscreenVideo>
109     <joystick name="AppleRemote">
110       <button id="1">VolumeUp</button>
111       <button id="2">VolumeDown</button>
112       <button id="3">StepBack</button>
113       <button id="4">StepForward</button>
114       <button id="5">Pause</button>
115       <button id="6">Stop</button>
116       <button id="7">OSD</button>
117       <button id="9">Rewind</button>
118       <button id="10">FastForward</button>
119     </joystick>
120   </FullscreenVideo>
121   <FullscreenInfo>
122     <joystick name="AppleRemote">
123       <button id="6">Close</button>
124     </joystick>
125   </FullscreenInfo>
126   <PlayerControls>
127     <joystick name="AppleRemote">
128       <button id="6">Close</button>
129     </joystick>
130   </PlayerControls>
131   <Visualisation>
132     <joystick name="AppleRemote">
133       <button id="1">VolumeUp</button>
134       <button id="2">VolumeDown</button>
135       <button id="3">SkipPrevious</button>
136       <button id="4">SkipNext</button>
137       <button id="5">Pause</button>
138       <button id="6">Fullscreen</button>
139       <button id="7">XBMC.ActivateWindow(MusicOSD)</button>
140       <button id="8">Stop</button>
141     </joystick>
142   </Visualisation>
143   <MusicOSD>
144     <joystick name="AppleRemote">
145       <button id="6">Close</button>
146     </joystick>
147   </MusicOSD>
148   <VisualisationSettings>
149     <joystick name="AppleRemote">
150       <button id="6">Close</button>
151     </joystick>
152   </VisualisationSettings>
153   <VisualisationPresetList>
154     <joystick name="AppleRemote">
155       <button id="6">Close</button>
156     </joystick>
157   </VisualisationPresetList>
158   <SlideShow>
159     <joystick name="AppleRemote">
160       <button id="1">ZoomIn</button>
161       <button id="2">ZoomOut</button>
162       <button id="3">PreviousPicture</button>
163       <button id="4">NextPicture</button>
164       <button id="6">Stop</button>
165       <button id="7">Info</button>
166     </joystick>
167   </SlideShow>
168   <ScreenCalibration>
169     <joystick name="AppleRemote">
170       <button id="5">NextCalibration</button>
171     </joystick>
172   </ScreenCalibration>
173   <SelectDialog>
174     <joystick name="AppleRemote">
175       <button id="6">Close</button>
176     </joystick>
177   </SelectDialog>
178   <VideoOSD>
179     <joystick name="AppleRemote">
180       <button id="6">Close</button>
181     </joystick>
182   </VideoOSD>
183   <VideoMenu>
184     <joystick name="AppleRemote">
185       <button id="5">Select</button>
186       <button id="6">Stop</button>
187       <button id="7">OSD</button>
188       <button id="8"/>
189     </joystick>
190   </VideoMenu>
191   <OSDVideoSettings>
192     <joystick name="AppleRemote">
193       <button id="6">Close</button>
194     </joystick>
195   </OSDVideoSettings>
196   <OSDAudioSettings>
197     <joystick name="AppleRemote">
198       <button id="6">Close</button>
199     </joystick>
200   </OSDAudioSettings>
201   <VideoBookmarks>
202     <joystick name="AppleRemote">
203       <button id="6">Close</button>
204     </joystick>
205   </VideoBookmarks>
206   <MyVideoLibrary>
207     <joystick name="AppleRemote">
208       <button id="6">ParentDir</button>
209       <button id="7">Info</button>
210     </joystick>
211   </MyVideoLibrary>
212   <MyVideoFiles>
213     <joystick name="AppleRemote">
214       <button id="6">ParentDir</button>
215       <button id="7">Info</button>
216     </joystick>
217   </MyVideoFiles>
218   <MyVideoPlaylist>
219     <joystick name="AppleRemote">
220       <button id="6">Playlist</button>
221     </joystick>
222   </MyVideoPlaylist>
223   <VirtualKeyboard>
224     <joystick name="AppleRemote">
225       <button id="6">Close</button>
226     </joystick>
227   </VirtualKeyboard>
228   <ContextMenu>
229     <joystick name="AppleRemote">
230       <button id="6">Close</button>
231     </joystick>
232   </ContextMenu>
233   <FileStackingDialog>
234     <joystick name="AppleRemote">
235       <button id="6">Close</button>
236     </joystick>
237   </FileStackingDialog>
238   <MusicInformation>
239     <joystick name="AppleRemote">
240       <button id="6">Close</button>
241     </joystick>
242   </MusicInformation>
243   <MovieInformation>
244     <joystick name="AppleRemote">
245       <button id="6">Close</button>
246     </joystick>
247   </MovieInformation>
248   <PictureInfo>
249     <joystick name="AppleRemote">
250       <button id="3">Left</button>
251       <button id="4">Right</button>
252       <button id="6">Close</button>
253     </joystick>
254   </PictureInfo>
255 </keymap>