(2024-01-29, 21:07)olili Wrote: Mapping libretto joystick codes to the VCS2600 xml would lead to something like this :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<layout label="30000" image="layout.png" mask="mask.png">
<category name="face" label="35074">
<button name="RETRO_DEVICE_ID_JOYPAD_B" type="digital" label="30001"/>
<button name="RETRO_DEVICE_ID_JOYPAD_UP" type="digital" label="30002"/>
<button name="RETRO_DEVICE_ID_JOYPAD_RIGHT" type="digital" label="30003"/>
<button name="RETRO_DEVICE_ID_JOYPAD_DOWN" type="digital" label="30004"/>
<button name="RETRO_DEVICE_ID_JOYPAD_LEFT" type="digital" label="30005"/>
</category>
<category name="hardware" label="35107">
<button name="RETRO_DEVICE_ID_JOYPAD_SELECT" type="digital" label="30006"/>
<button name="RETRO_DEVICE_ID_JOYPAD_START" type="digital" label="30007"/>
</category>
</layout>
@
olili Thanks for the XML, this is something I can work with. If you can pattern-match your way from existing examples to what you just created, then you'll be a rockstar at getting input to work in Kodi. It's a large system with a lot of pieces but everything is backed by pure descriptive data in XML files.
A GitHub user greatly improved input in atari800:
https://github.com/kodi-game/game.libret...800/pull/5 . Can you update game.libretro.atari800 to version 3.1.0.33 (on the mirrors in a few hours) and give input a test to see how we're doing?
(2024-01-29, 21:07)olili Wrote: I'm not so fmailar with all this mapping at kosi, even understaanding the priciples behind.
Maybe it is better that you will guide me a little bit.
Let's get your XML in action. I see you found the Controller Topology Project. Our first step is to create new add-ons in this repo. The add-ons will go in the folder
addons/ with the other controllers.
The very first question is, what IDs should we give the new controllers?
This depends on how many controllers we want to create right now. Do the Atari 800 and Atari 5200 have two different controllers, or could we save work by combining them into a single controller?
What should we do for the keyboard and mouse? Use the default keyboard/mouse add-ons like DOSBox does? Or create a custom keyboard profile specific to the Atari? Does the Atari support a mouse?
(2024-01-29, 21:07)olili Wrote: The ATRI800 Joystick is similar to the VCS2600 except the Hardware keys.
Hardware keys are a little tricky. The problem is that libretro cores use the libretro API which doesn't have any concept of hardware input, unlike Kodi.
For the Atari 2600, I solved it by adding the hardware buttons to the controller profile (
https://github.com/kodi-game/controller-...layout.xml ):
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<layout label="30000" image="layout.png" mask="mask.png">
<category name="face" label="35074">
<button name="fire" type="digital" label="30001"/>
<button name="up" type="digital" label="30002"/>
<button name="right" type="digital" label="30003"/>
<button name="down" type="digital" label="30004"/>
<button name="left" type="digital" label="30005"/>
</category>
<category name="hardware" label="35107">
<button name="select" type="digital" label="30006"/>
<button name="reset" type="digital" label="30007"/>
<button name="color" type="digital" label="30008"/>
<button name="bw" type="digital" label="30009"/>
<button name="leftdifficultya" type="digital" label="30010"/>
<button name="leftdifficultyb" type="digital" label="30011"/>
<button name="rightdifficultya" type="digital" label="30012"/>
<button name="rightdifficultyb" type="digital" label="30013"/>
</category>
</layout>
Do I assume correctly in that an Atari 800 controller is basically the same as a 2600 controller but with different hardware buttons?