Skip to content

Commit

Permalink
Merge pull request #6 from kodi-game/update-buttonmap
Browse files Browse the repository at this point in the history
Update buttonmap.xml and add topology.xml
  • Loading branch information
garbear authored Dec 8, 2023
2 parents 974e973 + d1e73de commit 7725322
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
1 change: 1 addition & 0 deletions game.libretro.xrick/addon.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
provider-name="">
<requires>
<import addon="game.libretro" version="1.0.0"/>
<import addon="game.controller.default" version="1.0.0"/>
</requires>
<extension point="kodi.gameclient"
library_@PLATFORM@="@LIBRARY_FILENAME@">
Expand Down
20 changes: 12 additions & 8 deletions game.libretro.xrick/resources/buttonmap.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<buttonmap version="2">
<controller id="game.controller.default" type="RETRO_DEVICE_JOYPAD">
<!-- Fire -->
<feature name="a" mapto="RETRO_DEVICE_ID_JOYPAD_A"/>
<!-- Left -->
<feature name="left" mapto="RETRO_DEVICE_ID_JOYPAD_LEFT"/>
<!-- Up -->
<feature name="up" mapto="RETRO_DEVICE_ID_JOYPAD_UP"/>
<!-- Right -->
<feature name="right" mapto="RETRO_DEVICE_ID_JOYPAD_RIGHT"/>
<!-- Down -->
<feature name="down" mapto="RETRO_DEVICE_ID_JOYPAD_DOWN"/>
<!-- Left -->
<feature name="left" mapto="RETRO_DEVICE_ID_JOYPAD_LEFT"/>
<!-- Right -->
<feature name="right" mapto="RETRO_DEVICE_ID_JOYPAD_RIGHT"/>
<!-- Jump -->
<feature name="b" mapto="RETRO_DEVICE_ID_JOYPAD_A"/>
<!-- Fire Gun -->
<feature name="a" mapto="RETRO_DEVICE_ID_JOYPAD_B"/>
<!-- Jab Stick (+ Left/Right) -->
<feature name="y" mapto="RETRO_DEVICE_ID_JOYPAD_X"/>
<!-- Set Dynamite -->
<feature name="x" mapto="RETRO_DEVICE_ID_JOYPAD_Y"/>
<!-- Pause -->
<feature name="start" mapto="RETRO_DEVICE_ID_JOYPAD_START"/>
<!-- End (not hooked up) -->
<!--<feature name="back" mapto="RETRO_DEVICE_ID_JOYPAD_SELECT"/>-->
</controller>
</buttonmap>
6 changes: 6 additions & 0 deletions game.libretro.xrick/resources/topology.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<logicaltopology>
<port type="controller" id="1">
<accepts controller="game.controller.default"/>
</port>
</logicaltopology>

0 comments on commit 7725322

Please sign in to comment.