[filesystem][SpecialProtocol] Removed assert from GetPath
[xbmc.git] / system / keymaps / touchscreen.xml
blob56a42c842cb22cdd47e7bf8d56d5f2dc3bffd00f
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- This file contains the mapping of touch gestures to actions within Kodi.             -->
3 <!--                                                                                      -->
4 <!-- The format is:                                                                       -->
5 <!--  <window>                                                                            -->
6 <!--    <device>                                                                          -->
7 <!--      <gesture>action</gesture>                                                       -->
8 <!--    </device>                                                                         -->
9 <!--  </window>                                                                           -->
10 <!--                                                                                      -->
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.                                            -->
13 <!--                                                                                      -->
14 <!-- Actions can be built-in functions.                                                   -->
15 <!--  eg <tap pointers="2">ActivateWindow(Music)</tap>                                    -->
16 <!-- would automatically go to Music when two fingers tap the screen at once.             -->
17 <!--                                                                                      -->
18 <!--                                                                                      -->
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.                     -->
21 <!--                                                                                      -->
22 <!-- More documentation on keymaps can be found on http://kodi.wiki/view/keymaps          -->
23 <keymap>
24   <global>
25     <touch>
26       <tap>LeftClick</tap>
27       <longpress>RightClick</longpress>
28       <tap pointers="2">RightClick</tap>
29       <pan>PanGesture</pan>
30       <swipe direction="left">SwipeLeft</swipe>
31       <swipe direction="left" pointers="2">Back</swipe>
32       <swipe direction="right">SwipeRight</swipe>
33       <swipe direction="right" pointers="2">Menu</swipe>  <!-- Easier access to the side blade menu on touchscreens.  -->
34       <swipe direction="up">SwipeUp</swipe>
35       <swipe direction="down">SwipeDown</swipe>
36       <swipe direction="up" pointers="3">SwitchPlayer</swipe>
37       <swipe direction="down" pointers="3">ActivateWindow(PlayerControls)</swipe>
38     </touch>
39   </global>
40   <FileManager>
41     <touch>
42       <tap>Select</tap>
43       <swipe direction="left">Highlight</swipe>
44       <swipe direction="right">Highlight</swipe>
45     </touch>
46   </FileManager>
47   <FullScreenVideo>
48     <touch>
49       <swipe direction="left">StepBack</swipe>
50       <swipe direction="right">StepForward</swipe>
51       <swipe direction="up">ChapterOrBigStepForward</swipe>
52       <swipe direction="down">ChapterOrBigStepBack</swipe>
53       <swipe direction="up" pointers="2">SkipNext</swipe>
54       <swipe direction="down" pointers="2">SkipPrevious</swipe>
55       <tap pointers="2">Playlist</tap>
56       <tap pointers="3">PlayPause</tap>
57     </touch>
58   </FullScreenVideo>
59   <FullScreenGame>
60     <touch>
61       <swipe direction="left">StepBack</swipe>
62       <swipe direction="right">StepForward</swipe>
63       <swipe direction="left" pointers="2">Seek(-7)</swipe>
64       <tap pointers="3">PlayPause</tap>
65     </touch>
66   </FullScreenGame>
67   <PlayerControls>
68     <touch>
69       <swipe direction="down" pointers="3">Back</swipe>
70     </touch>
71   </PlayerControls>
72   <Visualisation>
73     <touch>
74       <swipe direction="left">StepBack</swipe>
75       <swipe direction="right">StepForward</swipe>
76       <swipe direction="up">SkipNext</swipe>
77       <swipe direction="down">SkipPrevious</swipe>
78       <swipe direction="up" pointers="2">SkipNext</swipe>
79       <swipe direction="down" pointers="2">SkipPrevious</swipe>
80       <tap pointers="2">Playlist</tap>
81       <tap pointers="3">PlayPause</tap>
82     </touch>
83   </Visualisation>
84   <SlideShow>
85     <touch>
86       <zoom>ZoomGesture</zoom>
87       <rotate>RotateGesture</rotate>
88       <swipe direction="right" pointers="2">PreviousPicture</swipe> <!-- right/left are flipped here to make picture flipping feel more natural on touch screens. Two pointers are used in order to avoid conflicting with the panning gesture on zoomed-in images. -->
89       <swipe direction="left" pointers="2">NextPicture</swipe>
90       <tap pointers="2">Pause</tap>
91       <tap pointers="3">Info</tap>
92       <longpress>Back</longpress>
93     </touch>
94   </SlideShow>
95   <ScreenCalibration>
96     <touch>
97       <swipe direction="up">Up</swipe>
98       <swipe direction="down">Down</swipe>
99       <swipe direction="right">Right</swipe>
100       <swipe direction="left">Left</swipe>
101       <tap pointers="1">NextCalibration</tap>
102     </touch>
103   </ScreenCalibration>
104   <VideoMenu>
105     <touch>
106       <swipe direction="up" pointers="2">SkipNext</swipe>
107       <swipe direction="down" pointers="2">SkipPrevious</swipe>
108     </touch>
109   </VideoMenu>
110   <ContextMenu>
111     <touch>
112       <swipe direction="left" pointers="3">Back</swipe> <!-- backs out of "switch player" -->
113       <swipe direction="right" pointers="3">Back</swipe>
114     </touch>
115   </ContextMenu>
116   <PictureInfo>
117     <touch>
118       <tap pointers="3">Back</tap>
119     </touch>
120   </PictureInfo>
121   <FullScreenLiveTV>
122     <touch>
123       <swipe direction="up">Up</swipe>
124       <swipe direction="down">Down</swipe>
125     </touch>
126   </FullScreenLiveTV>
127   <FullScreenRadio>
128     <touch>
129       <swipe direction="up">ChannelUp</swipe>
130       <swipe direction="down">ChannelDown</swipe>
131     </touch>
132   </FullScreenRadio>
133 </keymap>