aboutsummaryrefslogtreecommitdiff
path: root/system/keymaps/mouse.xml
blob: 3bb3f43826758cce4de959d661a4fa3d2508c0c0 (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
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains the mapping of mouse 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 <middleclick>ActivateWindow(Music)</middleclick>                                 -->
<!-- would automatically go to Music on the press of the middle mouse button.             -->
<!--                                                                                      -->
<!--                                                                                      -->
<!-- An empty action removes the corresponding mapping from default and parent keymaps.   -->
<!-- This is different from a "noop" action, which disables a button.                     -->
<!--                                                                                      -->
<!--  Button Ids:                                                                         -->
<!--    0: left                                                                           -->
<!--    1: right                                                                          -->
<!--    2: middle                                                                         -->
<!--    3/4/5/6: extra                                                                    -->
<!--                                                                                      -->
<!-- More documentation on keymaps can be found on http://kodi.wiki/view/keymaps          -->
<keymap>
  <global>
    <mouse>
      <leftclick>leftclick</leftclick>
      <rightclick>rightclick</rightclick>
      <middleclick>middleclick</middleclick>
      <doubleclick id="0">doubleclick</doubleclick>
      <longclick id="0">contextmenu</longclick>
      <longclick id="2">Menu</longclick>  <!-- access to the blade menu via long right-click -->
      <wheeldown>wheeldown</wheeldown>
      <wheelup>wheelup</wheelup>
      <mousedrag>mousedrag</mousedrag>
      <mousedragend>mousedragend</mousedragend>
      <mousemove>mousemove</mousemove>
    </mouse>
  </global>
  <SlideShow>
    <mouse>
      <leftclick>Pause</leftclick>
      <rightclick>PreviousMenu</rightclick>
      <wheelup>PreviousPicture</wheelup>
      <wheeldown>NextPicture</wheeldown>
    </mouse>
  </SlideShow>
  <FullscreenVideo>
    <mouse>
      <rightclick>Info</rightclick>
    </mouse>
  </FullscreenVideo>
  <FullscreenGame>
    <mouse>
      <rightclick>Info</rightclick>
    </mouse>
  </FullscreenGame>
  <contextmenu>  <!-- Give a way out of the context menu without actually having to select something.  -->
    <mouse>
      <rightclick>back</rightclick>
    </mouse>
  </contextmenu>
</keymap>