blob: d0e957befb03c8382f65c7a6b4936e90b4699feb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
|
<!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC -->
<!-- The <global> section is a fall through - they will only be used if the button is not -->
<!-- used in the current window's section. Note that there is only handling -->
<!-- for a single action per button at this stage. -->
<!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox -->
<!-- gamepads. -->
<!-- The format is: -->
<!-- <device> -->
<!-- <button>action</button> -->
<!-- </device> -->
<!-- To map keys from other remotes using the RCA protocol, you may add <universalremote> blocks -->
<!-- In this case, the tags used are <obc#> where # is the original button code (OBC) of the key -->
<!-- You set it up by adding a <universalremote> block to the window or <global> section: -->
<!-- <universalremote> -->
<!-- <obc45>Stop</obc45> -->
<!-- </universalremote> -->
<!-- To find out the OBC's of your remote, try enabling the <displayremotecodes> tag in AdvancedSettings.xml -->
<!-- Note that the action can be a built-in function. -->
<!-- eg <B>XBMC.ActivateWindow(MyMusic)</B> -->
<!-- would automatically go to My Music on the press of the B button. -->
<!-- Joysticks / Gamepads: -->
<!-- See the sample PS3 controller configuration below for the format. -->
<!-- -->
<!-- Joystick Name: -->
<!-- Do 'cat /proc/bus/input/devices' or see your xbmc log file to find the names of -->
<!-- detected joysticks. The name used in the configuration should match the detected name. -->
<!-- -->
<!-- Button Ids: -->
<!-- 'id' is the button ID used by SDL. Joystick button ids of connected joysticks appear -->
<!-- in xbmc.log when they are pressed. Use your log to map custom buttons to actions. -->
<!-- -->
<!-- Axis Ids / Analog Controls -->
<!-- Coming soon. -->
<keymap>
<global>
<joystick name="AppleRemote">
<!-- plus --> <button id="1">Up</button>
<!-- minus --> <button id="2">Down</button>
<!-- left --> <button id="3">Left</button>
<!-- right --> <button id="4">Right</button>
<!-- center --> <button id="5">Select</button>
<!-- menu --> <button id="6">PreviousMenu</button>
<!-- hold center --> <button id="7">Fullscreen</button>
<!-- hold menu --> <button id="8">ContextMenu</button>
<!-- old buttons for ATV <2.2, used on OSX -->
<!-- hold left --> <button id="9">Left</button>
<!-- hold right --> <button id="10">Right</button>
<!-- new aluminium remote buttons -->
<!-- play --> <button id="12">Play</button>
<!-- play hold --> <button id="13">ContextMenu</button>
<!-- Learned remote buttons (ATV >2.3) -->
<!-- Play --> <button id="70">Play</button>
<!-- Pause --> <button id="71">Pause</button>
<!-- Stop --> <button id="72">Stop</button>
<!-- Previous --> <button id="73">SkipPrevious</button>
<!-- Next --> <button id="74">SkipNext</button>
<!-- Rewind --> <button id="75">Rewind</button>
<!-- Forward --> <button id="76">FastForward</button>
<!-- Return --> <button id="77">OSD</button>
<!-- Enter --> <button id="78">ShowVideoMenu</button>
<!-- few gestures from Apple's iPhone Remote (ATV > 2.3 ?) -->
<!-- SwipeLeft --> <button id="80">Left</button>
<!-- SwipeRight --> <button id="81">Right</button>
<!-- SwipeUp --> <button id="82">Up</button>
<!-- SwipeDown --> <button id="83">Down</button>
</joystick>
</global>
<Home>
<joystick name="AppleRemote">
<button id="6">XBMC.ActivateWindow(Favourites)</button>
<button id="8">ActivateWindow(shutdownmenu)</button>
</joystick>
</Home>
<Favourites>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</Favourites>
<MyPictures>
<joystick name="AppleRemote">
<button id="6">ParentDir</button>
</joystick>
</MyPictures>
<MyMusicPlaylist>
<joystick name="AppleRemote">
<button id="6">Playlist</button>
</joystick>
</MyMusicPlaylist>
<MyMusicPlaylistEditor>
<joystick name="AppleRemote">
<button id="6">Playlist</button>
</joystick>
</MyMusicPlaylistEditor>
<MyMusicFiles>
<joystick name="AppleRemote">
<button id="6">ParentDir</button>
</joystick>
</MyMusicFiles>
<MyMusicLibrary>
<joystick name="AppleRemote">
<button id="6">ParentDir</button>
</joystick>
</MyMusicLibrary>
<FullscreenVideo>
<joystick name="AppleRemote">
<button id="1">VolumeUp</button>
<button id="2">VolumeDown</button>
<button id="3">StepBack</button>
<button id="4">StepForward</button>
<button id="5">Pause</button>
<button id="6">Stop</button>
<button id="7">OSD</button>
<button id="9">Rewind</button>
<button id="10">FastForward</button>
</joystick>
</FullscreenVideo>
<FullscreenInfo>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</FullscreenInfo>
<PlayerControls>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</PlayerControls>
<Visualisation>
<joystick name="AppleRemote">
<button id="1">VolumeUp</button>
<button id="2">VolumeDown</button>
<button id="3">SkipPrevious</button>
<button id="4">SkipNext</button>
<button id="5">Pause</button>
<button id="6">Fullscreen</button>
<button id="7">XBMC.ActivateWindow(MusicOSD)</button>
<button id="8">Stop</button>
</joystick>
</Visualisation>
<MusicOSD>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</MusicOSD>
<VisualisationSettings>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</VisualisationSettings>
<VisualisationPresetList>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</VisualisationPresetList>
<SlideShow>
<joystick name="AppleRemote">
<button id="1">ZoomIn</button>
<button id="2">ZoomOut</button>
<button id="3">PreviousPicture</button>
<button id="4">NextPicture</button>
<button id="6">Stop</button>
<button id="7">Info</button>
<button id="8">Rotate</button>
</joystick>
</SlideShow>
<ScreenCalibration>
<joystick name="AppleRemote">
<button id="5">NextCalibration</button>
</joystick>
</ScreenCalibration>
<SelectDialog>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</SelectDialog>
<VideoOSD>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</VideoOSD>
<VideoMenu>
<joystick name="AppleRemote">
<button id="5">Select</button>
<button id="6">Stop</button>
<button id="7">OSD</button>
<button id="8"/>
</joystick>
</VideoMenu>
<OSDVideoSettings>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</OSDVideoSettings>
<OSDAudioSettings>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</OSDAudioSettings>
<VideoBookmarks>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</VideoBookmarks>
<MyVideoLibrary>
<joystick name="AppleRemote">
<button id="6">ParentDir</button>
<button id="7">Info</button>
</joystick>
</MyVideoLibrary>
<MyVideoFiles>
<joystick name="AppleRemote">
<button id="6">ParentDir</button>
<button id="7">Info</button>
</joystick>
</MyVideoFiles>
<MyVideoPlaylist>
<joystick name="AppleRemote">
<button id="6">Playlist</button>
</joystick>
</MyVideoPlaylist>
<VirtualKeyboard>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</VirtualKeyboard>
<ContextMenu>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</ContextMenu>
<FileStackingDialog>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</FileStackingDialog>
<MusicInformation>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</MusicInformation>
<MovieInformation>
<joystick name="AppleRemote">
<button id="6">Close</button>
</joystick>
</MovieInformation>
<PictureInfo>
<joystick name="AppleRemote">
<button id="3">Left</button>
<button id="4">Right</button>
<button id="6">Close</button>
</joystick>
</PictureInfo>
</keymap>
|