Skip to content

Commit

Permalink
Merge pull request #1 from kodi-game/add-buttonmap
Browse files Browse the repository at this point in the history
Add buttonmap and topology
  • Loading branch information
garbear authored May 2, 2024
2 parents 29ddbc6 + 95739f9 commit d58288a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
3 changes: 2 additions & 1 deletion game.libretro.a5200/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="game.libretro.a5200"
name="Atari - 5200 (a5200)"
version="2.0.2.15"
version="2.0.2.16"
provider-name="Petr Stehlik, zx81, Alekmaul, wavemotion-dave">
<requires>
<import addon="game.libretro" version="1.0.0"/>
<import addon="game.controller.atari.5200" version="1.0.32"/>
</requires>
<extension point="kodi.gameclient"
library_@PLATFORM@="@LIBRARY_FILENAME@">
Expand Down
21 changes: 21 additions & 0 deletions game.libretro.a5200/resources/buttonmap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<buttonmap version="2">
<controller id="game.controller.atari.5200" type="RETRO_DEVICE_JOYPAD">
<feature name="left" mapto="RETRO_DEVICE_ID_JOYPAD_LEFT"/>
<feature name="up" mapto="RETRO_DEVICE_ID_JOYPAD_UP"/>
<feature name="down" mapto="RETRO_DEVICE_ID_JOYPAD_DOWN"/>
<feature name="right" mapto="RETRO_DEVICE_ID_JOYPAD_RIGHT"/>
<feature name="fire1" mapto="RETRO_DEVICE_ID_JOYPAD_A"/>
<feature name="fire2" mapto="RETRO_DEVICE_ID_JOYPAD_B"/>
<feature name="pound" mapto="RETRO_DEVICE_ID_JOYPAD_X"/>
<feature name="star" mapto="RETRO_DEVICE_ID_JOYPAD_Y"/>
<feature name="num0" mapto="RETRO_DEVICE_ID_JOYPAD_R"/>
<feature name="num1" mapto="RETRO_DEVICE_ID_JOYPAD_R2"/>
<feature name="num5" mapto="RETRO_DEVICE_ID_JOYPAD_R3"/>
<feature name="togglevkbd" mapto="RETRO_DEVICE_ID_JOYPAD_L"/>
<feature name="num3" mapto="RETRO_DEVICE_ID_JOYPAD_L2"/>
<feature name="num7" mapto="RETRO_DEVICE_ID_JOYPAD_L3"/>
<feature name="pause" mapto="RETRO_DEVICE_ID_JOYPAD_SELECT"/>
<feature name="start" mapto="RETRO_DEVICE_ID_JOYPAD_START"/>
</controller>
</buttonmap>
9 changes: 9 additions & 0 deletions game.libretro.a5200/resources/topology.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<logicaltopology>
<port type="controller" id="1">
<accepts controller="game.controller.atari.5200"/>
</port>
<port type="controller" id="2">
<accepts controller="game.controller.atari.5200"/>
</port>
</logicaltopology>

0 comments on commit d58288a

Please sign in to comment.