iamtsb / arcade2usb-converter

Arcade to USB Converter (c64mini)
https://www.tsb.space/projects/c64-mini-arcade2usb-converter/
MIT License
10 stars 8 forks source link

issue with VID and PID when using multiple devices #2

Open alijani1 opened 3 years ago

alijani1 commented 3 years ago

When I use 0x22BA / 0x1020 vid/pid combination, mini sees the device but it breaks linux/Retropi from seeing multi HIDs on the same USB device. My devices have multiple ports that support connecting 2 or 4 joysticks and when i use my own VID, PID, linux sees all the devices correctly so retropie works great. unfortunately though Mini does not see the devices till i use the VID/PID you mentioned, but then it breaks Retro pie multi device capability.

Let me know if had any luck with any other VID/PID combination so i can try them as i cant figure out which ones the Mini/Maxi work with.

iamtsb commented 3 years ago

I tried other VID/PID but I used this VID/PID combination because it is in the support list of THEC64(mini). I pulled the list from the machine and I figured out the buttons that are used by the THEC64(mini).

So I can't give you another combination that works out of the box.

Added research documentation, that maybe can help you

alijani1 commented 3 years ago

thanks. found the solution by looking at the linux code https://github.com/torvalds/linux/blob/master/drivers/hid/hid-quirks.c and noticed all the devices that have the HID_QUIRK_MULTI_INPUT flag set. these are the VID/PID that work out of the box. unfortunately does not seem there is a twin that mapped already on gamecontrollersdb.txt of mini/maxi so it appears only way is to edit the file and use carousel or custom firmware for multi hids. thanks.