Skip to content

Commit

Permalink
Merge pull request #309 from garbear/add-linux-maps
Browse files Browse the repository at this point in the history
Add linux and udev buttonmaps
  • Loading branch information
garbear authored May 28, 2024
2 parents 8b15308 + 1d38fac commit 22b30a1
Show file tree
Hide file tree
Showing 10 changed files with 316 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" ?>
<buttonmap>
<device name="DualSense Wireless Controller" provider="linux" buttoncount="13" axiscount="8">
<configuration>
<appearance id="game.controller.ps.dualanalog" />
<axis index="2" center="-1" range="2" />
<axis index="5" center="-1" range="2" />
<button index="6" ignore="true" />
<button index="7" ignore="true" />
</configuration>
<controller id="game.controller.ps.dualanalog">
<feature name="analog" button="10" />
<feature name="circle" button="1" />
<feature name="cross" button="0" />
<feature name="down" axis="+7" />
<feature name="l3" button="11" />
<feature name="left" axis="-6" />
<feature name="leftbumper" button="4" />
<feature name="leftstick">
<up axis="-1" />
<down axis="+1" />
<right axis="+0" />
<left axis="-0" />
</feature>
<feature name="lefttrigger" axis="+2" />
<feature name="r3" button="12" />
<feature name="right" axis="+6" />
<feature name="rightbumper" button="5" />
<feature name="rightstick">
<up axis="-4" />
<down axis="+4" />
<right axis="+3" />
<left axis="-3" />
</feature>
<feature name="righttrigger" axis="+5" />
<feature name="select" button="8" />
<feature name="square" button="3" />
<feature name="start" button="9" />
<feature name="triangle" button="2" />
<feature name="up" axis="-7" />
</controller>
</device>
</buttonmap>
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<buttonmap>
<device name="Logitech Gamepad F310" provider="linux" buttoncount="11" axiscount="8">
<configuration>
<appearance id="game.controller.default" />
<axis index="2" center="-1" range="2" />
<axis index="5" center="-1" range="2" />
</configuration>
Expand All @@ -10,6 +11,7 @@
<feature name="b" button="1" />
<feature name="back" button="6" />
<feature name="down" axis="+7" />
<feature name="guide" button="8" />
<feature name="left" axis="-6" />
<feature name="leftbumper" button="4" />
<feature name="leftstick">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" ?>
<buttonmap>
<device name="Sony Interactive Entertainment DualSense Wireless Controller" provider="linux" buttoncount="13" axiscount="8">
<configuration>
<appearance id="game.controller.ps.dualanalog" />
<axis index="2" center="-1" range="2" />
<axis index="5" center="-1" range="2" />
<button index="6" ignore="true" />
<button index="7" ignore="true" />
</configuration>
<controller id="game.controller.ps.dualanalog">
<feature name="analog" button="10" />
<feature name="circle" button="1" />
<feature name="cross" button="0" />
<feature name="down" axis="+7" />
<feature name="l3" button="11" />
<feature name="left" axis="-6" />
<feature name="leftbumper" button="4" />
<feature name="leftstick">
<up axis="-1" />
<down axis="+1" />
<right axis="+0" />
<left axis="-0" />
</feature>
<feature name="lefttrigger" axis="+2" />
<feature name="r3" button="12" />
<feature name="right" axis="+6" />
<feature name="rightbumper" button="5" />
<feature name="rightstick">
<up axis="-4" />
<down axis="+4" />
<right axis="+3" />
<left axis="-3" />
</feature>
<feature name="righttrigger" axis="+5" />
<feature name="select" button="8" />
<feature name="square" button="3" />
<feature name="start" button="9" />
<feature name="triangle" button="2" />
<feature name="up" axis="-7" />
</controller>
</device>
</buttonmap>
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" ?>
<buttonmap>
<device name="Xbox 360 Wireless Receiver (XBOX)" provider="linux" buttoncount="15" axiscount="8">
<configuration>
<appearance id="game.controller.default" />
<axis index="2" center="-1" range="2" />
<axis index="5" center="-1" range="2" />
</configuration>
<controller id="game.controller.default">
<feature name="a" button="0" />
<feature name="b" button="1" />
<feature name="back" button="6" />
<feature name="down" button="14" />
<feature name="guide" button="8" />
<feature name="left" button="11" />
<feature name="leftbumper" button="4" />
<feature name="leftstick">
<up axis="-1" />
<down axis="+1" />
<right axis="+0" />
<left axis="-0" />
</feature>
<feature name="leftthumb" button="9" />
<feature name="lefttrigger" axis="+2" />
<feature name="right" button="12" />
<feature name="rightbumper" button="5" />
<feature name="rightstick">
<up axis="-4" />
<down axis="+4" />
<right axis="+3" />
<left axis="-3" />
</feature>
<feature name="rightthumb" button="10" />
<feature name="righttrigger" axis="+5" />
<feature name="start" button="7" />
<feature name="up" button="13" />
<feature name="x" button="2" />
<feature name="y" button="3" />
</controller>
</device>
</buttonmap>
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" ?>
<buttonmap>
<device name="DualSense Wireless Controller" provider="udev" vid="054C" pid="0CE6" buttoncount="13" axiscount="8">
<configuration>
<appearance id="game.controller.ps.dualanalog" />
<axis index="2" center="-1" range="2" />
<axis index="5" center="-1" range="2" />
<button index="6" ignore="true" />
<button index="7" ignore="true" />
</configuration>
<controller id="game.controller.ps.dualanalog">
<feature name="analog" button="10" />
<feature name="circle" button="1" />
<feature name="cross" button="0" />
<feature name="down" axis="+7" />
<feature name="l3" button="11" />
<feature name="left" axis="-6" />
<feature name="leftbumper" button="4" />
<feature name="leftstick">
<up axis="-1" />
<down axis="+1" />
<right axis="+0" />
<left axis="-0" />
</feature>
<feature name="lefttrigger" axis="+2" />
<feature name="r3" button="12" />
<feature name="right" axis="+6" />
<feature name="rightbumper" button="5" />
<feature name="rightstick">
<up axis="-4" />
<down axis="+4" />
<right axis="+3" />
<left axis="-3" />
</feature>
<feature name="righttrigger" axis="+5" />
<feature name="select" button="8" />
<feature name="square" button="3" />
<feature name="start" button="9" />
<feature name="triangle" button="2" />
<feature name="up" axis="-7" />
</controller>
</device>
</buttonmap>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<device name="Logitech Gamepad F310" provider="udev" vid="046D" pid="C21D" buttoncount="11" axiscount="8">
<configuration>
<appearance id="game.controller.default" />
<axis index="2" center="-1" range="2" />
<axis index="5" center="-1" range="2" />
</configuration>
<controller id="game.controller.default">
<feature name="a" button="0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" ?>
<buttonmap>
<device name="Microsoft X-Box 360 pad 0" provider="udev" vid="28DE" pid="11FF" buttoncount="11" axiscount="8">
<configuration>
<appearance id="game.controller.default" />
<axis index="2" center="-1" range="2" />
<axis index="5" center="-1" range="2" />
</configuration>
<controller id="game.controller.default">
<feature name="a" button="0" />
<feature name="b" button="1" />
<feature name="back" button="6" />
<feature name="down" axis="+7" />
<feature name="left" axis="-6" />
<feature name="leftbumper" button="4" />
<feature name="leftstick">
<up axis="-1" />
<down axis="+1" />
<right axis="+0" />
<left axis="-0" />
</feature>
<feature name="leftthumb" button="9" />
<feature name="lefttrigger" axis="+2" />
<feature name="right" axis="+6" />
<feature name="rightbumper" button="5" />
<feature name="rightstick">
<up axis="-4" />
<down axis="+4" />
<right axis="+3" />
<left axis="-3" />
</feature>
<feature name="rightthumb" button="10" />
<feature name="righttrigger" axis="+5" />
<feature name="start" button="7" />
<feature name="up" axis="-7" />
<feature name="x" button="2" />
<feature name="y" button="3" />
</controller>
</device>
</buttonmap>
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" ?>
<buttonmap>
<device name="Sony Interactive Entertainment DualSense Wireless Controller" provider="udev" vid="054C" pid="0CE6" buttoncount="13" axiscount="8">
<configuration>
<appearance id="game.controller.ps.dualanalog" />
<axis index="2" center="-1" range="2" />
<axis index="5" center="-1" range="2" />
<button index="6" ignore="true" />
<button index="7" ignore="true" />
</configuration>
<controller id="game.controller.ps.dualanalog">
<feature name="analog" button="10" />
<feature name="circle" button="1" />
<feature name="cross" button="0" />
<feature name="down" axis="+7" />
<feature name="l3" button="11" />
<feature name="left" axis="-6" />
<feature name="leftbumper" button="4" />
<feature name="leftstick">
<up axis="-1" />
<down axis="+1" />
<right axis="+0" />
<left axis="-0" />
</feature>
<feature name="lefttrigger" axis="+2" />
<feature name="r3" button="12" />
<feature name="right" axis="+6" />
<feature name="rightbumper" button="5" />
<feature name="rightstick">
<up axis="-4" />
<down axis="+4" />
<right axis="+3" />
<left axis="-3" />
</feature>
<feature name="righttrigger" axis="+5" />
<feature name="select" button="8" />
<feature name="square" button="3" />
<feature name="start" button="9" />
<feature name="triangle" button="2" />
<feature name="up" axis="-7" />
</controller>
</device>
</buttonmap>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<device name="Sony Interactive Entertainment Wireless Controller" provider="udev" vid="054C" pid="09CC" buttoncount="13" axiscount="8">
<configuration>
<appearance id="game.controller.ps.dualanalog" />
<axis index="2" center="-1" range="2" />
<axis index="5" center="-1" range="2" />
<button index="6" ignore="true" />
<button index="7" ignore="true" />
</configuration>
<controller id="game.controller.ps.dualanalog">
<feature name="analog" button="10" />
Expand All @@ -12,11 +16,23 @@
<feature name="l3" button="11" />
<feature name="left" axis="-6" />
<feature name="leftbumper" button="4" />
<feature name="lefttrigger" button="6" />
<feature name="leftstick">
<up axis="-1" />
<down axis="+1" />
<right axis="+0" />
<left axis="-0" />
</feature>
<feature name="lefttrigger" axis="+2" />
<feature name="r3" button="12" />
<feature name="right" axis="+6" />
<feature name="rightbumper" button="5" />
<feature name="righttrigger" button="7" />
<feature name="rightstick">
<up axis="-4" />
<down axis="+4" />
<right axis="+3" />
<left axis="-3" />
</feature>
<feature name="righttrigger" axis="+5" />
<feature name="select" button="8" />
<feature name="square" button="3" />
<feature name="start" button="9" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" ?>
<buttonmap>
<device name="Xbox 360 Wireless Receiver (XBOX)" provider="udev" vid="045E" pid="02A1" buttoncount="15" axiscount="8">
<configuration>
<appearance id="game.controller.default" />
<axis index="2" center="-1" range="2" />
<axis index="5" center="-1" range="2" />
</configuration>
<controller id="game.controller.default">
<feature name="a" button="0" />
<feature name="b" button="1" />
<feature name="back" button="6" />
<feature name="down" button="14" />
<feature name="guide" button="8" />
<feature name="left" button="11" />
<feature name="leftbumper" button="4" />
<feature name="leftstick">
<up axis="-1" />
<down axis="+1" />
<right axis="+0" />
<left axis="-0" />
</feature>
<feature name="leftthumb" button="9" />
<feature name="lefttrigger" axis="+2" />
<feature name="right" button="12" />
<feature name="rightbumper" button="5" />
<feature name="rightstick">
<up axis="-4" />
<down axis="+4" />
<right axis="+3" />
<left axis="-3" />
</feature>
<feature name="rightthumb" button="10" />
<feature name="righttrigger" axis="+5" />
<feature name="start" button="7" />
<feature name="up" button="13" />
<feature name="x" button="2" />
<feature name="y" button="3" />
</controller>
</device>
</buttonmap>

0 comments on commit 22b30a1

Please sign in to comment.