cathery / sys-con

Nintendo Switch sysmodule that allows support for third-party controllers
GNU General Public License v3.0
970 stars 65 forks source link

8BitDo Ultimate C 2.4 GHz support? #322

Open MonkaKokosowa opened 11 months ago

MonkaKokosowa commented 11 months ago

It would be great to get support for 8BitDo Ultimate C 2.4 GHz controller considering it's using usb dongle and doesn't have bluetooth functionality. The problem with it is that as much as it has plug-and-play in android and windows it isn't detected in linux and using sys-con on switch by default. However, the fix for linux is adding line below as a udev rule as pointed by this gist

    ACTION=="add", ATTRS{idVendor}=="2dc8", ATTRS{idProduct}=="3106", RUN+="/sbin/modprobe xpad", RUN+="/bin/sh -c 'echo 2dc8 3106 > /sys/bus/usb/drivers/xpad/new_id'"

Essentially, like ammuench said, it cheats linux into thinking it's a generic xbox device with inputting this id. I'm not really knowledgeable about C++ and low-level stuff, but thought that maybe it's possible to implement a workaround for this considering sys-con supports xbox controllers.

o0Zz commented 5 months ago

Hi, I actively maintain a fork of this project, it support all generic controller compatible with a PC. Thus, it should works with your controller. https://github.com/o0Zz/sys-con/releases

MonkaKokosowa commented 5 months ago

Well I did try your fork a while back. No matter the config, the logs didn't produce anything and absolutely nothing happened with that controller. It might be that it's one of the exceptions with its weird xbox like output.

I didn't do anything with it at that time since the issues were closed on the fork and I'm not good enough to debug sys modules, but if that's okay I will open an issue later and assist with bringing support for it.

gvilardefarias commented 2 months ago

Have you managed to use this controlles on the switch?