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

Cheap Xbox 360 Wireless Controllers (Radio 2.4Ghz) #8

Open
bretbenz84 opened this issue Apr 4, 2024 · 2 comments
Open

Cheap Xbox 360 Wireless Controllers (Radio 2.4Ghz) #8

bretbenz84 opened this issue Apr 4, 2024 · 2 comments

Comments

@bretbenz84
Copy link

Having bought a cheap controller that did not work, I discovered that they behave as if they are wired USB controllers with a simple radio in between. Thus it does not work the same way, but with simple edits and a change of the library it works like a charm. I'd like to contribute my version that works with these $20 controllers.

Change the include for xboxrecv.h to #include <XBOXUSB.h>

Change line 170 to XBOXUSB Xbox(&Usb);

Change line 242 to if (!Xbox.Xbox360Connected) {

Any further xbox function call remove the , 0 from that line. Since it's not one of four controllers (default 0) and just a single USB controller this gets it to work.

@dankraus
Copy link
Owner

dankraus commented Apr 9, 2024

Nice find @bretbenz84 ! Would you like to open up a Pull Request to include an additional sketch with these changes? Please include information on the readme as well about this addition, which controllers it’s expected to work with as well

@bretbenz84
Copy link
Author

bretbenz84 commented Apr 12, 2024 via email

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