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

USB Joystick not working #13

Open
TzOk83 opened this issue Jan 5, 2024 · 6 comments
Open

USB Joystick not working #13

TzOk83 opened this issue Jan 5, 2024 · 6 comments

Comments

@TzOk83
Copy link

TzOk83 commented Jan 5, 2024

I have recently tried my USB joysticks, and one didn't work at all, while another one was almost working - there were some erratic reactions to the d-pad, but no fire button at all.

Please also notice, that the real ST, the right mouse button acts as a joystick fire button (they are physically wired together).

They were both generic gamepads, one not working was analog, with the digital d-pad (PlayStation knock-off), and the one almost working was a digital d-pad only (namely a PiHut SNES USB Pad: https://thepihut.com/products/raspberry-pi-compatible-usb-gamepad-controller-snes-style).

@harbaum
Copy link
Owner

harbaum commented Jan 5, 2024

I have a bunch of USB joysticks but haven't tested many of them, yet. This will sure come once all the basic's are implemented.

@TzOk83
Copy link
Author

TzOk83 commented Jan 6, 2024

Is there any way I could help (without experience in Verilog)?

@harbaum
Copy link
Owner

harbaum commented Jan 6, 2024

The USB part happens completely on the M0S/BL616. There is no Verilog involved.

@harbaum
Copy link
Owner

harbaum commented Feb 21, 2024

So I do have a quite similar looking cheap SNES like shaped gamepad which just works fine.

@HaraldSimon
Copy link

I have checked two USB joysticks, both not working (Competition Pro/EasySMX).
The USB descriptor is longer than 128 bytes which is a limit inside a structore of the cherry usb stack (report_desc in usbh_hid struct). After patching the sources with the value of 256 both are listed in the debug log of the BL616.
But they are still not working. The Competition Pro does not send usb urbs, the EasySMX does not transfer axes...

@harbaum
Copy link
Owner

harbaum commented Jun 24, 2024

Development now takes place at https://github.com/harbaum/FPGA-Companion

But the issues are likely the same. Feel free to submit a PR if you fix things.

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

3 participants