summaryrefslogtreecommitdiffstats
path: root/system/keymaps/customcontroller.AppleRemote.xml
blob: a06cf599228c3dc2b52a08ccd8f297881af2136f (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
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains the mapping of keys to actions within Kodi.                       -->
<!--                                                                                      -->
<!-- The format is:                                                                       -->
<!--  <window>                                                                            -->
<!--    <device>                                                                          -->
<!--      <button>action</button>                                                         -->
<!--    </device>                                                                         -->
<!--  </window>                                                                           -->
<!--                                                                                      -->
<!-- The <global> section is a fall through - they will only be used if the button is     -->
<!-- not used in the current window's section.                                            -->
<!--                                                                                      -->
<!-- Actions can be built-in functions.                                                   -->
<!--  eg <button id="6">ActivateWindow(Music)</button>                                    -->
<!-- would automatically go to Music on the press of the "Menu" button.                   -->
<!--                                                                                      -->
<!--                                                                                      -->
<!-- An empty action removes the corresponding mapping from default and parent keymaps.   -->
<!-- This is different from a "noop" action, which disables a button.                     -->
<!--                                                                                      -->
<!-- More documentation on keymaps can be found on http://kodi.wiki/view/keymaps          -->
<!--                                                                                      -->
<!-- To map keys from other remotes using the RCA protocol, you may add                   -->
<!--   <customcontroller name="AppleRemote"> blocks.                                      -->
<!-- In this case, the tags used are <button id=""#> where # is the original button code  -->
<!-- (OBC) of the key.                                                                    -->
<!-- You set it up by adding a <customcontroller name="AppleRemote"> block to the window  -->
<!-- or <global> section:                                                                 -->
<!--    <customcontroller name="AppleRemote">                                             -->
<!--       <button id="45">Stop</button>                                                  -->
<!--    </customcontroller>                                                               -->
<!--                                                                                      -->
<!--  Button Ids:                                                                         -->
<!--  'id' is the button ID used by SDL. The key ids recognized from your remote appears  -->
<!--  in the log file for each button pressed and when debug mode is enabled.             -->
<!--  Use your log to discover and map custom buttons to actions.                         -->
<keymap>
  <global>
    <customcontroller 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">Back</button>
      <!-- hold center-->      <button id="7">Fullscreen</button>
      <!-- hold menu  -->      <button id="8">ContextMenu</button>

      <!-- old buttons for ATV1 <2.2, used on OSX  -->
      <!-- hold left  -->      <button id="9">Left</button>
      <!-- hold right -->      <button id="10">Right</button>

      <!-- new aluminium remote buttons  -->
      <!-- play/pause -->      <button id="12">PlayPause</button>

      <!-- Additional buttons via Harmony Apple TV remote profile - these are also the learned buttons on Apple TV 2gen-->
      <!-- pageup     -->      <button id="13">PageUp</button>
      <!-- pagedown   -->      <button id="14">PageDown</button>
      <!-- pause      -->      <button id="15">Pause</button>
      <!-- play2      -->      <button id="16">Play</button>
      <!-- stop       -->      <button id="17">Stop</button>
      <!-- fast fwd   -->      <button id="18">FastForward</button>
      <!-- rewind     -->      <button id="19">Rewind</button>
      <!-- skip fwd   -->      <button id="20">SkipNext</button>
      <!-- skip back  -->      <button id="21">SkipPrevious</button>

      <!-- Learned remote buttons (ATV1 >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 (ATV1 > 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>

      <!-- FlickLeft  -->      <button id="85">Left</button>
      <!-- FlickRight -->      <button id="86">Right</button>
      <!-- FlickUp    -->      <button id="87">Up</button>
      <!-- FlickDown  -->      <button id="88">Down</button>

    </customcontroller>
  </global>
  <Home>
    <customcontroller name="AppleRemote">
      <button id="6">ActivateWindow(FavouritesBrowser)</button>
      <button id="8">ActivateWindow(shutdownmenu)</button>
    </customcontroller>
  </Home>
  <FullscreenVideo>
    <customcontroller 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="8">Fullscreen</button>
      <button id="9">Rewind</button>
      <button id="10">FastForward</button>
      <!-- pageup     -->      <button id="13">ChapterOrBigStepForward</button>
      <!-- pagedown   -->      <button id="14">ChapterOrBigStepBack</button>
      <!-- SwipeLeft  -->      <button id="80">StepBack</button>
      <!-- SwipeRight -->      <button id="81">StepForward</button>
      <!-- SwipeUp    -->      <button id="82">BigStepForward</button>
      <!-- SwipeDown  -->      <button id="83">BigStepBack</button>
      <!-- FlickLeft  -->      <button id="85">Rewind</button>
      <!-- FlickRight -->      <button id="86">FastForward</button>
      <!-- FlickUp    -->      <button id="87">BigStepForward</button>
      <!-- FlickDown  -->      <button id="88">BigStepBack</button>
    </customcontroller>
  </FullscreenVideo>
  <FullscreenLiveTV>
    <customcontroller name="AppleRemote">
      <button id="3">ChannelDown</button>
      <button id="4">ChannelUp</button>
      <!-- pageup     -->      <button id="13">ChannelUp</button>
      <!-- pagedown   -->      <button id="14">ChannelDown</button>
    </customcontroller>
  </FullscreenLiveTV>
  <FullscreenRadio>
    <customcontroller name="AppleRemote">
      <button id="3">ChannelDown</button>
      <button id="4">ChannelUp</button>
      <!-- pageup     -->      <button id="13">ChannelUp</button>
      <!-- pagedown   -->      <button id="14">ChannelDown</button>
    </customcontroller>
  </FullscreenRadio>
  <Visualisation>
    <customcontroller 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">OSD</button>
      <button id="8">Stop</button>
      <!-- SwipeLeft  -->      <button id="80">SkipPrevious</button>
      <!-- SwipeRight -->      <button id="81">SkipNext</button>
      <!-- FlickLeft  -->      <button id="85">SkipPrevious</button>
      <!-- FlickRight -->      <button id="86">SkipNext</button>
    </customcontroller>
  </Visualisation>
  <SlideShow>
    <customcontroller 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>
      <!-- SwipeLeft  -->      <button id="80">PreviousPicture</button>
      <!-- SwipeRight -->      <button id="81">NextPicture</button>
      <!-- FlickLeft  -->      <button id="85">PreviousPicture</button>
      <!-- FlickRight -->      <button id="86">NextPicture</button>
    </customcontroller>
  </SlideShow>
  <ScreenCalibration>
    <customcontroller name="AppleRemote">
      <button id="5">NextCalibration</button>
    </customcontroller>
  </ScreenCalibration>
  <VideoOSD>
    <customcontroller name="AppleRemote">
      <button id="7">Back</button>
    </customcontroller>
  </VideoOSD>
  <VideoMenu>
    <customcontroller name="AppleRemote">
      <button id="5">Select</button>
      <button id="6">Stop</button>
      <button id="7">OSD</button>
      <button id="8"/>
    </customcontroller>
  </VideoMenu>
  <Videos>
    <customcontroller name="AppleRemote">
      <button id="7">Info</button>
    </customcontroller>
  </Videos>
  <PictureInfo>
    <customcontroller name="AppleRemote">
      <button id="3">Left</button>
      <button id="4">Right</button>
      <!-- SwipeLeft  -->      <button id="80">Left</button>
      <!-- SwipeRight -->      <button id="81">Right</button>
      <!-- FlickLeft  -->      <button id="85">Left</button>
      <!-- FlickRight -->      <button id="86">Right</button>
    </customcontroller>
  </PictureInfo>
</keymap>