[FR] integrate "hid-retrobit" for Atari -> USB Retrobit Adapter

Hi!

It would be nice, if you can integrade the “hid-retrobit” fix for this Adapter:

so that it is fully working. I love playing Games with my old Joysticks :wink:

Whole story: (with driver)

another driver with deb-packages:

Once you get it mapped properly on your system (which should be doable, if it’s a HID device), save your autoconfig file and submit it to the retroarch-joypad-autoconfig repo on Github and it’ll be included with future releases.

I can’t fully map it, because only “UP”, “LEFT” and “FIRE” are detected. To be able to get all directions, the patch/fix has to be in OE/Lakka:

Here is the fix. The Retrolink adapter does not follow the USB HIB specification (section 5.10 and 6.2.25) and returns out-of-bound values. Contrary to the former, the HID driver strictly follows the specification and ignores such values. The fix consists in clamping the values instead of discarding them.

When the fix is in, then I’ll submit the autoconfig for Joystick1 and 2 to github, so it get’s autodetected and works ootb

And: The HW is fully working in Win without a driver and it works in Ubuntu 15.04 after installing the deb-driver (see post above). I can’t try the other solution, because I haven’t compiled a Kernel yet :~

It is in line 1137 here: https://github.com/torvalds/linux/blob/master/drivers/hid/hid-input.c#L1137 Should I open a FR on github?

Sure. As long as it doesn’t break anything else (clamping should be pretty safe, I think).

OK, I got a step forward the Adapter is working under Lakka. But to provide a cfg for the adapter, I need to configure the adapter by CLI. Here I can’t skip some buttons with the keyboard. If I configure the adapter via GUI, then I can skip the not needed buttons, but how can I read and extract the config, so that I can send you the whole package? (Patch and cfg)? Thx

Hi Solo, you can ssh and use “retroarch-joyconfig -a foo.cfg”.

I’ve already done this, I read the Wiki. But the Atari2600 and the C64 Joysticks does only have 1 Firebutton. What should I use for the other ones? Or should I edit the cfg later and edit ButtonXY = “nul” or something like that?

For the other ones, hit enter or escape with your keyboard, or yes, you can also remove the useless lines in the file.