Skip to content

Instantly share code, notes, and snippets.

@Eddy0412
Created January 22, 2016 13:08
Show Gist options
  • Save Eddy0412/77142c6b80b3419fd6c2 to your computer and use it in GitHub Desktop.
Save Eddy0412/77142c6b80b3419fd6c2 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<gamecontroller configversion="19" appversion="2.20.2">
<!--The SDL name for a joystick is included for informational purposes only.-->
<sdlname>PS4 Controller</sdlname>
<!--The GUID for a joystick is included for informational purposes only.-->
<guid>4c05c405000000000000504944564944</guid>
<names/>
<sets>
<set index="1">
<stick index="1">
<stickbutton index="5">
<slots>
<slot>
<code>0x53</code>
<mode>keyboard</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="7">
<slots>
<slot>
<code>0x41</code>
<mode>keyboard</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="1">
<slots>
<slot>
<code>0x57</code>
<mode>keyboard</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="3">
<slots>
<slot>
<code>0x44</code>
<mode>keyboard</mode>
</slot>
</slots>
</stickbutton>
</stick>
<stick index="2">
<stickbutton index="5">
<slots>
<slot>
<code>2</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="7">
<slots>
<slot>
<code>3</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="1">
<slots>
<slot>
<code>1</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="3">
<slots>
<slot>
<code>4</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
</stick>
<dpad index="1">
<dpadbutton index="4">
<slots>
<slot>
<code>0x34</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
<dpadbutton index="1">
<slots>
<slot>
<code>0x32</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
<dpadbutton index="2">
<slots>
<slot>
<code>0x33</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
<dpadbutton index="8">
<slots>
<slot>
<code>0x31</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
</dpad>
<trigger index="1">
<triggerbutton index="2">
<slots>
<slot>
<code>0x51</code>
<mode>keyboard</mode>
</slot>
</slots>
</triggerbutton>
</trigger>
<trigger index="2">
<triggerbutton index="2">
<slots>
<slot>
<code>0x45</code>
<mode>keyboard</mode>
</slot>
</slots>
</triggerbutton>
</trigger>
<button index="1">
<slots>
<slot>
<code>0x20</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="2">
<slots>
<slot>
<code>3</code>
<mode>mousebutton</mode>
</slot>
</slots>
</button>
<button index="3">
<slots>
<slot>
<code>1</code>
<mode>mousebutton</mode>
</slot>
</slots>
</button>
<button index="4">
<cycleresetinterval>500</cycleresetinterval>
<slots>
<slot>
<code>10</code>
<mode>release</mode>
</slot>
<slot>
<code>1</code>
<mode>setchange</mode>
</slot>
</slots>
</button>
<button index="5">
<slots>
<slot>
<code>0x1000023</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="8">
<slots>
<slot>
<code>0x46</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="10">
<slots>
<slot>
<code>0x1000020</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="11">
<slots>
<slot>
<code>0x1000001</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
</set>
<set index="2">
<stick index="1">
<stickbutton index="5">
<slots>
<slot>
<code>0x53</code>
<mode>keyboard</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="7">
<slots>
<slot>
<code>0x41</code>
<mode>keyboard</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="1">
<slots>
<slot>
<code>0x57</code>
<mode>keyboard</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="3">
<slots>
<slot>
<code>0x44</code>
<mode>keyboard</mode>
</slot>
</slots>
</stickbutton>
</stick>
<stick index="2">
<stickbutton index="5">
<slots>
<slot>
<code>2</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="7">
<slots>
<slot>
<code>3</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="1">
<slots>
<slot>
<code>1</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="3">
<slots>
<slot>
<code>4</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
</stick>
<dpad index="1">
<dpadbutton index="4">
<slots>
<slot>
<code>0x56</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
<dpadbutton index="1">
<slots>
<slot>
<code>0x58</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
<dpadbutton index="2">
<slots>
<slot>
<code>0x43</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
<dpadbutton index="8">
<slots>
<slot>
<code>0x5a</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
</dpad>
<trigger index="1">
<triggerbutton index="2">
<slots>
<slot>
<code>100</code>
<mode>release</mode>
</slot>
<slot>
<code>0</code>
<mode>setchange</mode>
</slot>
</slots>
</triggerbutton>
</trigger>
<trigger index="2">
<triggerbutton index="2">
<slots>
<slot>
<code>0x45</code>
<mode>keyboard</mode>
</slot>
</slots>
</triggerbutton>
</trigger>
<button index="1">
<slots>
<slot>
<code>0x31</code>
<mode>keyboard</mode>
</slot>
<slot>
<code>100</code>
<mode>release</mode>
</slot>
<slot>
<code>0</code>
<mode>setchange</mode>
</slot>
</slots>
</button>
<button index="2">
<slots>
<slot>
<code>0x46</code>
<mode>keyboard</mode>
</slot>
<slot>
<code>100</code>
<mode>release</mode>
</slot>
<slot>
<code>0</code>
<mode>setchange</mode>
</slot>
</slots>
</button>
<button index="3">
<slots>
<slot>
<code>0x58</code>
<mode>keyboard</mode>
</slot>
<slot>
<code>100</code>
<mode>release</mode>
</slot>
<slot>
<code>0</code>
<mode>setchange</mode>
</slot>
</slots>
</button>
<button index="4">
<slots>
<slot>
<code>20</code>
<mode>release</mode>
</slot>
<slot>
<code>0</code>
<mode>setchange</mode>
</slot>
</slots>
</button>
<button index="5">
<slots>
<slot>
<code>0x1000023</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="8">
<slots>
<slot>
<code>2</code>
<mode>setchange</mode>
</slot>
</slots>
</button>
<button index="10">
<slots>
<slot>
<code>0x1000020</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="11">
<slots>
<slot>
<code>0x1000001</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
</set>
<set index="3">
<stick index="1">
<stickbutton index="5">
<slots>
<slot>
<code>0x53</code>
<mode>keyboard</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="7">
<slots>
<slot>
<code>0x41</code>
<mode>keyboard</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="1">
<slots>
<slot>
<code>0x57</code>
<mode>keyboard</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="3">
<slots>
<slot>
<code>0x44</code>
<mode>keyboard</mode>
</slot>
</slots>
</stickbutton>
</stick>
<stick index="2">
<stickbutton index="5">
<slots>
<slot>
<code>2</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="7">
<slots>
<slot>
<code>3</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="1">
<slots>
<slot>
<code>1</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="3">
<slots>
<slot>
<code>4</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
</stick>
<dpad index="1">
<dpadbutton index="4">
<slots>
<slot>
<code>0x38</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
<dpadbutton index="1">
<slots>
<slot>
<code>0x36</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
<dpadbutton index="2">
<slots>
<slot>
<code>0x37</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
<dpadbutton index="8">
<slots>
<slot>
<code>0x35</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
</dpad>
<trigger index="1">
<triggerbutton index="2">
<slots>
<slot>
<code>0x51</code>
<mode>keyboard</mode>
</slot>
</slots>
</triggerbutton>
</trigger>
<trigger index="2">
<triggerbutton index="2">
<slots>
<slot>
<code>0x45</code>
<mode>keyboard</mode>
</slot>
</slots>
</triggerbutton>
</trigger>
<button index="1">
<slots>
<slot>
<code>0x20</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="2">
<slots>
<slot>
<code>3</code>
<mode>mousebutton</mode>
</slot>
</slots>
</button>
<button index="3">
<slots>
<slot>
<code>1</code>
<mode>mousebutton</mode>
</slot>
</slots>
</button>
<button index="4">
<slots>
<slot>
<code>0</code>
<mode>setchange</mode>
</slot>
</slots>
</button>
<button index="5">
<slots>
<slot>
<code>0x1000023</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="8">
<slots>
<slot>
<code>0x1000021</code>
<mode>keyboard</mode>
</slot>
<slot>
<code>0x52</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="10">
<slots>
<slot>
<code>0x1000020</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="11">
<slots>
<slot>
<code>0x1000001</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
</set>
</sets>
</gamecontroller>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment