summaryrefslogtreecommitdiffstats
path: root/system/keymaps/customcontroller.SiriRemote.xml
blob: 1267c8d4b06e040a67edff5aa3286494f2ccc34c (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
<?xml version="1.0" encoding="UTF-8"?>
<!-- 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 id=""#>xbmc action</button>                                                    -->
<!--    </device>                                                                                -->

<!-- To map keys from other remotes using the RCA protocol, you may add <customcontroller name="SiriRemote"> 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="SiriRemote"> block to the window or <global> section:        -->
<!--    <customcontroller name="SiriRemote">                                                                        -->
<!--       <button id="45">Stop</button>                                                         -->
<!--    </customcontroller>                                                                       -->

<!-- Note that the action can be a built-in function.                                            -->
<!--            eg <button id="6">ActivateWindow(FavouritesBrowser)</button>                     -->
<!-- would bring up Favourites when the button with the id of 6 is press. In this case, "Menu"   -->

<!--                                                                                             -->
<!--  Button Ids:                                                                                -->
<!--  'id' is the button ID used by SDL. The key ids recognized from your remote appears      -->
<!--  in /var/log/syslog on the ATV2 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="SiriRemote">
      <!-- Siri/IR remotes up                       --> <button id="1">Up</button>
      <!-- Siri/IR remotes down                     --> <button id="2">Down</button>
      <!-- Siri/IR remotes left                     --> <button id="3">Left</button>
      <!-- Siri/IR remotes right                    --> <button id="4">Right</button>
      <!-- Siri remote select                       --> <button id="5">Select</button>
      <!-- Siri remote menu                         --> <button id="6">Back</button>
      <!-- Siri remote hold select                  --> <button id="7">ContextMenu</button>
      <!-- Siri remote swipe up                     --> <button id="8">Up</button>
      <!-- Siri remote swipe down                   --> <button id="9">Down</button>
      <!-- Siri remote swipe left                   --> <button id="10">Left</button>
      <!-- Siri remote swipe right                  --> <button id="11">Right</button>
      <!-- Siri remote play/pause                   --> <button id="12">PlayPause</button>
      <!-- IR remote/iDevice Now Playing play       --> <button id="13">Play</button>
      <!-- IR remote/iDevice Now Playing pause      --> <button id="14">Pause</button>
      <!-- IR remote stop                           --> <button id="15">Stop</button>
      <!-- IR remote/iDevice Now Playing next track --> <button id="16">SkipNext</button>
      <!-- IR remote/iDevice Now Playing prev track --> <button id="17">SkipPrevious</button>
      <!-- IR remote seek forward                   --> <button id="18">FastForward</button>
      <!-- IR remote seek backward                  --> <button id="19">Rewind</button>
      <!-- Siri remote hold play/pause              --> <button id="20">Stop</button>
      <!-- Siri remote double play/pause            --> <button id="21">noop</button>
      <!-- Siri remote double select                --> <button id="22">noop</button>
      <!-- Siri remote pan up                       --> <button id="23">Up</button>
      <!-- Siri remote pan down                     --> <button id="24">Down</button>
      <!-- Siri remote pan left                     --> <button id="25">Left</button>
      <!-- Siri remote pan right                    --> <button id="26">Right</button>
    </customcontroller>
  </global>
  <Home>
    <customcontroller name="SiriRemote">
      <button id="6">ActivateWindow(FavouritesBrowser)</button>
    </customcontroller>
  </Home>
  <FullscreenVideo>
    <customcontroller name="SiriRemote">
      <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">noop</button>
      <button id="9">noop</button>
      <button id="10">noop</button>
      <button id="11">noop</button>
    </customcontroller>
  </FullscreenVideo>
  <FullscreenLiveTV>
    <customcontroller name="SiriRemote">
      <button id="3">ChannelDown</button>
      <button id="4">ChannelUp</button>
      <button id="8">noop</button>
      <button id="9">noop</button>
      <button id="10">noop</button>
      <button id="11">noop</button>
    </customcontroller>
  </FullscreenLiveTV>
  <FullscreenRadio>
    <customcontroller name="SiriRemote">
      <button id="3">ChannelDown</button>
      <button id="4">ChannelUp</button>
    </customcontroller>
  </FullscreenRadio>
  <Visualisation>
    <customcontroller name="SiriRemote">
      <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>
    </customcontroller>
  </Visualisation>
  <SlideShow>
    <customcontroller name="SiriRemote">
      <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>
    </customcontroller>
  </SlideShow>
  <ScreenCalibration>
    <customcontroller name="SiriRemote">
      <button id="5">NextCalibration</button>
    </customcontroller>
  </ScreenCalibration>
  <VideoOSD>
    <customcontroller name="SiriRemote">
      <button id="7">Back</button>
    </customcontroller>
  </VideoOSD>
  <VideoMenu>
    <customcontroller name="SiriRemote">
      <button id="5">Select</button>
      <button id="6">Stop</button>
      <button id="7">OSD</button>
    </customcontroller>
  </VideoMenu>
  <Videos>
    <customcontroller name="SiriRemote">
      <button id="7">ContextMenu</button>
    </customcontroller>
  </Videos>
  <PictureInfo>
    <customcontroller name="SiriRemote">
      <button id="3">Left</button>
      <button id="4">Right</button>
    </customcontroller>
  </PictureInfo>
</keymap>