dotfiles/desktop.controller.amgp

271 lines
9.1 KiB
Text
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<gamecontroller configversion="19" appversion="3.3.4">
<!--The SDL name for a joystick is included for informational purposes only.-->
<sdlname>Afterglow Gamepad for PS3</sdlname>
<!--The Unique ID for a joystick is included for informational purposes only.-->
<uniqueID>0300d3b76f0e000011010000110100003695273</uniqueID>
<stickAxisAssociation index="2" xAxis="3" yAxis="4"/>
<stickAxisAssociation index="1" xAxis="1" yAxis="2"/>
<vdpadButtonAssociations index="1">
<vdpadButtonAssociation axis="0" button="12" direction="1"/>
<vdpadButtonAssociation axis="0" button="13" direction="4"/>
<vdpadButtonAssociation axis="0" button="14" direction="8"/>
<vdpadButtonAssociation axis="0" button="15" direction="2"/>
</vdpadButtonAssociations>
<names>
<controlstickname index="2">Stick 2</controlstickname>
<controlstickname index="1">Stick 1</controlstickname>
</names>
<sets>
<!-- main set is for general GUI operations -->
<set index="1">
<!-- right stick scrolls -->
<stick index="2">
<stickbutton index="7">
<slots>
<slot>
<code>6</code>
<mode>mousebutton</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="5">
<slots>
<slot>
<code>5</code>
<mode>mousebutton</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="3">
<slots>
<slot>
<code>7</code>
<mode>mousebutton</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="1">
<slots>
<slot>
<code>4</code>
<mode>mousebutton</mode>
</slot>
</slots>
</stickbutton>
</stick>
<!-- left stick moves the mouse pointer -->
<stick index="1">
<stickbutton index="7">
<slots>
<slot>
<code>3</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="5">
<slots>
<slot>
<code>2</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="3">
<slots>
<slot>
<code>4</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="1">
<slots>
<slot>
<code>1</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
</stick>
<!-- dpad is mapped to arrow keys -->
<dpad index="1">
<dpadbutton index="8">
<slots>
<slot>
<code>0x1000012</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
<dpadbutton index="4">
<slots>
<slot>
<code>0x1000015</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
<dpadbutton index="2">
<slots>
<slot>
<code>0x1000014</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
<dpadbutton index="1">
<slots>
<slot>
<code>0x1000013</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
</dpad>
<!-- R&L 1&2 are modbuttons -->
<trigger index="6">
<deadZone>2000</deadZone>
<throttle>positivehalf</throttle>
<triggerbutton index="2">
<slots>
<slot>
<code>0x1000023</code>
<mode>keyboard</mode>
</slot>
</slots>
</triggerbutton>
</trigger>
<trigger index="5">
<deadZone>2000</deadZone>
<throttle>positivehalf</throttle>
<triggerbutton index="2">
<slots>
<slot>
<code>0x1000020</code>
<mode>keyboard</mode>
</slot>
</slots>
</triggerbutton>
</trigger>
<button index="11">
<slots>
<slot>
<code>0x1000021</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="10">
<slots>
<slot>
<code>0x1000022</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<!-- face buttons: { sqare: button1, x: button2, circle: button3, triangle: esc } -->
<button index="4">
<slots>
<slot>
<code>0x1000000</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="3">
<slots>
<slot>
<code>1</code>
<mode>mousebutton</mode>
</slot>
</slots>
</button>
<button index="2">
<slots>
<slot>
<code>3</code>
<mode>mousebutton</mode>
</slot>
</slots>
</button>
<button index="1">
<slots>
<slot>
<code>2</code>
<mode>mousebutton</mode>
</slot>
</slots>
</button>
<!-- select = tab, start = enter -->
<button index="7">
<slots>
<slot>
<code>0x1000004</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="5">
<slots>
<slot>
<code>0x1000001</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<!-- R3 toggles svkbd -->
<button index="9">
<slots>
<slot>
<path>/home/nilix/bin/togglekb.sh</path>
<mode>execute</mode>
</slot>
</slots>
</button>
<!-- guide button changes to set 2 -->
<button index="6">
<slots>
<slot>
<code>1</code>
<mode>setchange</mode>
</slot>
</slots>
</button>
</set>
<!-- this set is empty so that game configs can take over the controller bindings -->
<set index="2">
<trigger index="6">
<throttle>positivehalf</throttle>
</trigger>
<trigger index="5">
<throttle>positivehalf</throttle>
</trigger>
<!-- guide button toggles back to set 1 -->
<button index="6">
<slots>
<slot>
<code>0</code>
<mode>setchange</mode>
</slot>
</slots>
</button>
</set>
</sets>
</gamecontroller>