Merge pull request #4735 from cg110/fix_web_server_mem_leak
[vuplus_xbmc] / system / keymaps / joystick.Nintendo.Wii.U.Pro.Controller.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3      Button mappings for the Nintendo Wii U Pro Controller (currently Linux only).
4
5      - The Power button is not actually usuable as a button
6        but can only be used to turn off the controller.
7
8      - Up until kernel 3.12, one of the axis was inverted
9        and the driver occasionally crashed, so one should at least
10        run kernel 3.13 to use this controller.
11
12      ID          Button
13
14      1           B
15      2           A
16      3           X
17      4           Y
18      5           L
19      6           R
20      7           ZL
21      8           ZR
22      9           Select
23      10          Start
24      11          Home
25      12          Left stick click
26      13          Right stick click
27      14          D-Pad Up
28      15          D-Pad Down
29      16          D-Pad Left
30      17          D-Pad Right
31      Axis 1      Left stick left/right
32      Axis 2      Left stick up/down
33      Axis 3      Right stick left/right
34      Axis 4      Right stick up/down
35
36 -->
37 <keymap>
38   <global>
39     <joystick name="Nintendo Wii Remote Pro Controller">
40       <!-- B, A, X, Y -->
41       <button id="1">Back</button>
42       <button id="2">Select</button>
43       <button id="3">FullScreen</button>
44       <button id="4">ContextMenu</button>
45
46       <!-- L, R -->
47       <button id="5">Queue</button>
48       <button id="6">Playlist</button>
49
50       <!-- ZL, ZR -->
51       <button id="7">ScrollUp</button>
52       <button id="8">ScrollDown</button>
53
54       <!-- Home -->
55       <button id="11">XBMC.ActivateWindow(Home)</button>
56
57       <!-- Left/Right stick click -->
58       <button id="12">XBMC.ActivateWindow(ShutdownMenu)</button>
59       <button id="13">XBMC.ActivateWindow(PlayerControls)</button>
60
61       <!-- D-Pad -->
62       <button id="14">Up</button>
63       <button id="15">Down</button>
64       <button id="16">Left</button>
65       <button id="17">Right</button>
66
67       <!-- Left stick -->
68       <axis id="1" limit="-1">Left</axis>
69       <axis id="1" limit="+1">Right</axis>
70       <axis id="2" limit="-1">Up</axis>
71       <axis id="2" limit="+1">Down</axis>
72
73       <!-- Right stick up/down -->
74       <axis id="4" limit="-1">VolumeUp</axis>
75       <axis id="4" limit="+1">VolumeDown</axis>
76     </joystick>
77   </global>
78
79   <FullscreenVideo>
80     <joystick name="Nintendo Wii Remote Pro Controller">
81       <!-- B, A, Y; X is global FullScreen. -->
82       <button id="1">Stop</button>
83       <button id="2">Pause</button>
84       <button id="4">OSD</button>
85
86       <!-- L/R -->
87       <button id="5">AudioNextLanguage</button>
88       <button id="6">NextSubtitle</button>
89
90       <!-- ZL/ZR -->
91       <button id="7">Rewind</button>
92       <button id="8">FastForward</button>
93
94       <!-- Start -->
95       <button id="10">Info</button>
96
97       <!-- Right stick click -->
98       <button id="13">AspectRatio</button>
99
100       <!-- D-Pad -->
101       <button id="14">BigStepForward</button>
102       <button id="15">BigStepBack</button>
103       <button id="16">StepBack</button>
104       <button id="17">StepForward</button>
105
106       <!-- Left stick left/right -->
107       <axis id="1" limit="-1">AnalogRewind</axis>
108       <axis id="1" limit="+1">AnalogFastForward</axis>
109
110     </joystick>
111   </FullscreenVideo>
112 </keymap>