1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- This file contains the mapping of keys to actions within Kodi. -->
4 <!-- The format is: -->
7 <!-- <button>action</button> -->
11 <!-- The <global> section is a fall through - they will only be used if the button is -->
12 <!-- not used in the current window's section. -->
14 <!-- Actions can be built-in functions. -->
15 <!-- eg <button id="6">ActivateWindow(Music)</button> -->
16 <!-- would automatically go to Music on the press of the "Menu" button. -->
19 <!-- An empty action removes the corresponding mapping from default and parent keymaps. -->
20 <!-- This is different from a "noop" action, which disables a button. -->
22 <!-- More documentation on keymaps can be found on http://kodi.wiki/view/keymaps -->
24 <!-- To map keys from other remotes using the RCA protocol, you may add -->
25 <!-- <customcontroller name="AppleRemote"> blocks. -->
26 <!-- In this case, the tags used are <button id=""#> where # is the original button code -->
27 <!-- (OBC) of the key. -->
28 <!-- You set it up by adding a <customcontroller name="AppleRemote"> block to the window -->
29 <!-- or <global> section: -->
30 <!-- <customcontroller name="AppleRemote"> -->
31 <!-- <button id="45">Stop</button> -->
32 <!-- </customcontroller> -->
35 <!-- 'id' is the button ID used by SDL. The key ids recognized from your remote appears -->
36 <!-- in the log file for each button pressed and when debug mode is enabled. -->
37 <!-- Use your log to discover and map custom buttons to actions. -->
40 <customcontroller 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">Back</button>
47 <!-- hold center--> <button id="7">Fullscreen</button>
48 <!-- hold menu --> <button id="8">ContextMenu</button>
50 <!-- old buttons for ATV1 <2.2, used on OSX -->
51 <!-- hold left --> <button id="9">Left</button>
52 <!-- hold right --> <button id="10">Right</button>
54 <!-- new aluminium remote buttons -->
55 <!-- play/pause --> <button id="12">PlayPause</button>
57 <!-- Additional buttons via Harmony Apple TV remote profile - these are also the learned buttons on Apple TV 2gen-->
58 <!-- pageup --> <button id="13">PageUp</button>
59 <!-- pagedown --> <button id="14">PageDown</button>
60 <!-- pause --> <button id="15">Pause</button>
61 <!-- play2 --> <button id="16">Play</button>
62 <!-- stop --> <button id="17">Stop</button>
63 <!-- fast fwd --> <button id="18">FastForward</button>
64 <!-- rewind --> <button id="19">Rewind</button>
65 <!-- skip fwd --> <button id="20">SkipNext</button>
66 <!-- skip back --> <button id="21">SkipPrevious</button>
68 <!-- Learned remote buttons (ATV1 >2.3) -->
69 <!-- Play --> <button id="70">Play</button>
70 <!-- Pause --> <button id="71">Pause</button>
71 <!-- Stop --> <button id="72">Stop</button>
72 <!-- Previous --> <button id="73">SkipPrevious</button>
73 <!-- Next --> <button id="74">SkipNext</button>
74 <!-- Rewind --> <button id="75">Rewind</button>
75 <!-- Forward --> <button id="76">FastForward</button>
76 <!-- Return --> <button id="77">OSD</button>
77 <!-- Enter --> <button id="78">ShowVideoMenu</button>
79 <!-- few gestures from Apple's iPhone Remote (ATV1 > 2.3 ?) -->
80 <!-- SwipeLeft --> <button id="80">Left</button>
81 <!-- SwipeRight --> <button id="81">Right</button>
82 <!-- SwipeUp --> <button id="82">Up</button>
83 <!-- SwipeDown --> <button id="83">Down</button>
85 <!-- FlickLeft --> <button id="85">Left</button>
86 <!-- FlickRight --> <button id="86">Right</button>
87 <!-- FlickUp --> <button id="87">Up</button>
88 <!-- FlickDown --> <button id="88">Down</button>
93 <customcontroller name="AppleRemote">
94 <button id="6">ActivateWindow(FavouritesBrowser)</button>
95 <button id="8">ActivateWindow(shutdownmenu)</button>
99 <customcontroller name="AppleRemote">
100 <button id="1">VolumeUp</button>
101 <button id="2">VolumeDown</button>
102 <button id="3">StepBack</button>
103 <button id="4">StepForward</button>
104 <button id="5">Pause</button>
105 <button id="6">Stop</button>
106 <button id="7">OSD</button>
107 <button id="8">Fullscreen</button>
108 <button id="9">Rewind</button>
109 <button id="10">FastForward</button>
110 <!-- pageup --> <button id="13">ChapterOrBigStepForward</button>
111 <!-- pagedown --> <button id="14">ChapterOrBigStepBack</button>
112 <!-- SwipeLeft --> <button id="80">StepBack</button>
113 <!-- SwipeRight --> <button id="81">StepForward</button>
114 <!-- SwipeUp --> <button id="82">BigStepForward</button>
115 <!-- SwipeDown --> <button id="83">BigStepBack</button>
116 <!-- FlickLeft --> <button id="85">Rewind</button>
117 <!-- FlickRight --> <button id="86">FastForward</button>
118 <!-- FlickUp --> <button id="87">BigStepForward</button>
119 <!-- FlickDown --> <button id="88">BigStepBack</button>
123 <customcontroller name="AppleRemote">
124 <button id="3">ChannelDown</button>
125 <button id="4">ChannelUp</button>
126 <!-- pageup --> <button id="13">ChannelUp</button>
127 <!-- pagedown --> <button id="14">ChannelDown</button>
131 <customcontroller name="AppleRemote">
132 <button id="3">ChannelDown</button>
133 <button id="4">ChannelUp</button>
134 <!-- pageup --> <button id="13">ChannelUp</button>
135 <!-- pagedown --> <button id="14">ChannelDown</button>
139 <customcontroller name="AppleRemote">
140 <button id="1">VolumeUp</button>
141 <button id="2">VolumeDown</button>
142 <button id="3">SkipPrevious</button>
143 <button id="4">SkipNext</button>
144 <button id="5">Pause</button>
145 <button id="6">Fullscreen</button>
146 <button id="7">OSD</button>
147 <button id="8">Stop</button>
148 <!-- SwipeLeft --> <button id="80">SkipPrevious</button>
149 <!-- SwipeRight --> <button id="81">SkipNext</button>
150 <!-- FlickLeft --> <button id="85">SkipPrevious</button>
151 <!-- FlickRight --> <button id="86">SkipNext</button>
155 <customcontroller name="AppleRemote">
156 <button id="1">ZoomIn</button>
157 <button id="2">ZoomOut</button>
158 <button id="3">PreviousPicture</button>
159 <button id="4">NextPicture</button>
160 <button id="6">Stop</button>
161 <button id="7">Info</button>
162 <button id="8">Rotate</button>
163 <!-- SwipeLeft --> <button id="80">PreviousPicture</button>
164 <!-- SwipeRight --> <button id="81">NextPicture</button>
165 <!-- FlickLeft --> <button id="85">PreviousPicture</button>
166 <!-- FlickRight --> <button id="86">NextPicture</button>
170 <customcontroller name="AppleRemote">
171 <button id="5">NextCalibration</button>
175 <customcontroller name="AppleRemote">
176 <button id="7">Back</button>
180 <customcontroller name="AppleRemote">
181 <button id="5">Select</button>
182 <button id="6">Stop</button>
183 <button id="7">OSD</button>
188 <customcontroller name="AppleRemote">
189 <button id="7">Info</button>
193 <customcontroller name="AppleRemote">
194 <button id="3">Left</button>
195 <button id="4">Right</button>
196 <!-- SwipeLeft --> <button id="80">Left</button>
197 <!-- SwipeRight --> <button id="81">Right</button>
198 <!-- FlickLeft --> <button id="85">Left</button>
199 <!-- FlickRight --> <button id="86">Right</button>