Skip to content

Commit

Permalink
Merge pull request #2 from kodi-game/topology
Browse files Browse the repository at this point in the history
Add topology.xml
  • Loading branch information
garbear authored Feb 7, 2018
2 parents d4c04c7 + a5dc41e commit dab276e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions game.libretro.virtualjaguar/addon.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
provider-name="Libretro">
<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
34 changes: 34 additions & 0 deletions game.libretro.virtualjaguar/resources/buttonmap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<buttonmap version="2">
<!-- TODO: Add support for Atari Jaguar controller --->
<controller id="game.controller.default" type="RETRO_DEVICE_JOYPAD">
<feature name="up" mapto="RETRO_DEVICE_ID_JOYPAD_UP"/>
<feature name="down" mapto="RETRO_DEVICE_ID_JOYPAD_DOWN"/>
<feature name="left" mapto="RETRO_DEVICE_ID_JOYPAD_LEFT"/>
<feature name="right" mapto="RETRO_DEVICE_ID_JOYPAD_RIGHT"/>
<!-- A -->
<feature name="b" mapto="RETRO_DEVICE_ID_JOYPAD_A"/>
<!---->
<feature name="a" mapto="RETRO_DEVICE_ID_JOYPAD_B"/>
<!-- C -->
<feature name="x" mapto="RETRO_DEVICE_ID_JOYPAD_Y"/>
<!-- Pause -->
<feature name="back" mapto="RETRO_DEVICE_ID_JOYPAD_SELECT"/>
<!-- Option -->
<feature name="start" mapto="RETRO_DEVICE_ID_JOYPAD_START"/>
<!-- Button 0 -->
<feature name="y" mapto="RETRO_DEVICE_ID_JOYPAD_X"/>
<!-- Button 1 -->
<feature name="leftbumper" mapto="RETRO_DEVICE_ID_JOYPAD_L"/>
<!-- Button 2 -->
<feature name="rightbumper" mapto="RETRO_DEVICE_ID_JOYPAD_R"/>
<!-- Button 3 -->
<feature name="lefttrigger" mapto="RETRO_DEVICE_ID_JOYPAD_L2"/>
<!-- Button 4 -->
<feature name="righttrigger" mapto="RETRO_DEVICE_ID_JOYPAD_R2"/>
<!-- Button 5 -->
<feature name="leftthumb" mapto="RETRO_DEVICE_ID_JOYPAD_L3"/>
<!-- Button 6 -->
<feature name="rightthumb" mapto="RETRO_DEVICE_ID_JOYPAD_R3"/>
</controller>
</buttonmap>
9 changes: 9 additions & 0 deletions game.libretro.virtualjaguar/resources/topology.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<logicaltopology>
<port type="controller" id="1">
<accepts controller="game.controller.default"/>
</port>
<port type="controller" id="2">
<accepts controller="game.controller.default"/>
</port>
</logicaltopology>

0 comments on commit dab276e

Please sign in to comment.