Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-controller support #97

Open
Berghopper opened this issue Aug 29, 2024 · 3 comments
Open

multi-controller support #97

Berghopper opened this issue Aug 29, 2024 · 3 comments

Comments

@Berghopper
Copy link

Related to #91

It's possible to emulate multiple xbox controllers over 1 usb device using the wireless receiver packets.
I tried to do this myself, and got some basic poc working here.
However, I did it with a rpi zero, which is easily able to support all the endpoints.

The wireless receiver supports 4 devices, each with 2 interfaces (one control, one for audio) which each have 2 endpoints (in/out).
With my poc I'm not fully able to emulate the receiver, instead I changed the interface protocol for controller input to that of the regular controller.

Maybe it'd also be possible to edit the config descriptor and then e.g., drop the audio interfaces as well. This way the ATmega32U4 might possibly be able to support 3 controllers. Seeing that this lib aims for that hardware.

I think it'd be awesome if this gets added, seeing that it could make some projects more compact using only 1 device.

Thoughts?

@Berghopper
Copy link
Author

Berghopper commented Aug 30, 2024

update: indeed, it seems that if you just leave out the audio interface/endpoints, it still works!

Take a look at my POC/example here.

@dmadison
Copy link
Owner

dmadison commented Nov 4, 2024

Sorry for the late reply. That's interesting! Did you have any luck testing with only 6 endpoints?

@Berghopper
Copy link
Author

Berghopper commented Nov 7, 2024

I did, anywhere between 1-4 controllers seems to work just fine. Main issue is going beyond that, and it's heavily depends on the OS's drivers. e.g. MacOS can't seem to pick up more than 1 controller

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants