MiSTeryNano icon indicating copy to clipboard operation
MiSTeryNano copied to clipboard

USB Joystick not working

Open TzOk83 opened this issue 1 year ago • 6 comments

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).

TzOk83 avatar Jan 05 '24 19:01 TzOk83

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.

harbaum avatar Jan 05 '24 20:01 harbaum

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

TzOk83 avatar Jan 06 '24 10:01 TzOk83

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

harbaum avatar Jan 06 '24 12:01 harbaum

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

harbaum avatar Feb 21 '24 11:02 harbaum

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...

HaraldSimon avatar Jun 22 '24 11:06 HaraldSimon

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.

harbaum avatar Jun 24 '24 10:06 harbaum