aboutsummaryrefslogtreecommitdiff
path: root/system/keymaps/joystick.Interact.AxisPad.xml
blob: 922642aefd63e4180a5aebc85eedb7ef2c21ea96 (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
<?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>action</button>        -->
<!--    </device>                        -->

<!-- To map keys from other remotes using the RCA protocol, you may add <universalremote> blocks -->
<!-- In this case, the tags used are <obc#> where # is the original button code (OBC) of the key -->
<!-- You set it up by adding a <universalremote> block to the window or <global> section:       -->
<!--    <universalremote>             -->
<!--       <obc45>Stop</obc45>         -->
<!--    </universalremote>            -->

<!-- Note that the action can be a built-in function.                 -->
<!--  eg <B>XBMC.ActivateWindow(MyMusic)</B>                         -->
<!-- would automatically go to My Music on the press of the B button. -->

<!-- Joysticks / Gamepads:                                                                    -->
<!--   See the sample PS3 controller configuration below for the format.                      -->
<!--                                                                                          -->
<!--  Joystick Name:                                                                          -->
<!--   Do 'cat /proc/bus/input/devices' or see your xbmc log file  to find the names of       -->
<!--   detected joysticks. The name used in the configuration should match the detected name. -->
<!--                                                                                          -->
<!--  Button Ids:                                                                             -->
<!--   'id' is the button ID used by SDL. Joystick button ids of connected joysticks appear   -->
<!--   in xbmc.log when they are pressed. Use your log to map custom buttons to actions.      -->
<!--                                                                                          -->
<!--  Axis Ids / Analog Controls                                                              -->
<!--   Coming soon.                                                                           -->
<keymap>
  <global>
    <joystick name="STD AxisPad">
      <altname>Interact AxisPad</altname>
      <button id="1">FullScreen</button> <!--square -->
      <button id="3">Select</button>  <!--x --> 
      <button id="4">Back</button>   <!--circle --> 
      <button id="2">Queue</button> <!-- tri -->
      <button id="5">PreviousMenu</button> <!-- l1 -->
      <button id="7"></button>  <!-- l2 -->      
      <button id="9">Screenshot</button> <!-- l3 - left analog -->
      <button id="6"></button>    <!-- r1 -->      
      <button id="8"></button>  <!-- r2 -->
      <button id="10">PreviousMenu</button> <!-- R3 - right analog -->      
      <button id="11"></button>  <!-- select/Escape -->      
      <button id="12">XBMC.ActivateWindow(PlayerControls)</button>  <!-- start/enter --> 
      <button id="20"></button> <!-- Toggle Switch-->
      <!-- Left Analog Left and Right-->
      <axis limit="-1" id="0">AnalogSeekBack</axis>        
      <axis limit="+1" id="0">AnalogSeekForward</axis>
      <!-- Left Analog Up and Down-->
      <axis limit="-1" id="1">ScrollUp</axis>
      <axis limit="+1" id="1">ScrollDown</axis> 
        <!-- Right Analog Up and Down -->
      <axis limit="-1" id="2">VolumeUp</axis>        
      <axis limit="+1" id="2">VolumeDown</axis>
      <!-- Left Analog Left and Right-->      
      <axis limit="-1" id="3"></axis>      
      <axis limit="+1" id="3"></axis>
      <!-- Hat Axises, unused -->
      <axis limit="+1" id="4">Right</axis>
      <axis limit="-1" id="4">Left</axis>            
      <axis limit="-1" id="5">Up</axis>
      <axis limit="+1" id="5">Down</axis>
      <!-- Hat  -->      
      <hat id="1" position="left">Left</hat>
      <hat id="1" position="right">Right</hat>
      <hat id="1" position="up">Up</hat>
      <hat id="1" position="down">Down</hat>
    </joystick>
  </global>
</keymap>