Works perfectly in Windows, nothing in MiSTer no spinner nor buttons.
The buttons and encoder work in Windows. In the game controllers control panel the axis shows as "Dial" and all buttons are functional. In mouse mode the spinner acts as a mouse X axis, as expected. MiSTer doesn't recognize any input. I made no source code changes.
Some output from lsusb and dmesg (device ID changed because I had plug cycled a few times).
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 011: ID 1b4f:9206 SparkFun SparkFun Pro Micro
Bus 001 Device 005: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive
Bus 001 Device 002: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
/root# dmesg |tail -16
[ 1387.481765] usb 1-1.5: new full-speed USB device number 11 using dwc2
[ 1387.581905] usb 1-1.5: New USB device found, idVendor=1b4f, idProduct=9206, bcdDevice= 1.00
[ 1387.581929] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1387.581942] usb 1-1.5: Product: SparkFun Pro Micro
[ 1387.581952] usb 1-1.5: Manufacturer: SparkFun
[ 1387.581960] usb 1-1.5: SerialNumber: HIDGDMiSTer-A1 Spinner
[ 1387.584221] cdc_acm 1-1.5:1.0: ttyACM0: USB ACM device
[ 1387.588977] HID usage: 0x00010002, original interval: 1
[ 1387.588998] HID usage: 0x00010002, applied interval: 1
[ 1387.589213] input: SparkFun SparkFun Pro Micro as /devices/platform/soc/ffb40000.usb/usb1/1-1/1-1.5/1-1.5:1.2/0003:1B4F:9206.000E/input/input14
[ 1387.643387] hid-generic 0003:1B4F:9206.000E: input,hidraw0: USB HID v1.01 Mouse [SparkFun SparkFun Pro Micro] on usb-ffb40000.usb-1.5/input2
[ 1387.648015] HID usage: 0x00010004, original interval: 1
[ 1387.648046] JS: endpoint->bInterval=1, interval=1
[ 1387.648054] HID usage: 0x00010004, applied interval: 1
[ 1387.648297] input: SparkFun SparkFun Pro Micro as /devices/platform/soc/ffb40000.usb/usb1/1-1/1-1.5/1-1.5:1.3/0003:1B4F:9206.000F/input/input15
[ 1387.649873] hid-generic 0003:1B4F:9206.000F: input,hidraw1: USB HID v1.01 Joystick [SparkFun SparkFun Pro Micro] on usb-ffb40000.usb-1.5/input3
/root# lsusb -s 1:14 -v
Bus 001 Device 014: ID 1b4f:9206 SparkFun SparkFun Pro Micro
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 64
idVendor 0x1b4f
idProduct 0x9206
bcdDevice 1.00
iManufacturer 1 SparkFun
iProduct 2 SparkFun Pro Micro
iSerial 3 HIDGDMiSTer-A1 Spinner
Hi @opcow
I'm guessing you've already added the controller to the Mister's recognized joysticks list, but just in case (and maybe for others), can you check out this guide? https://boogermann.github.io/Bible_MiSTer/getting-started/inputs/joystick-mapping/
Thank you. I feel kind of silly, but I thought buttons and the dpad on my other controllers were recognized without going there, but maybe I just forgot. For anyone reading, after selecting the menu "define joystick buttons" it asked me to press DPAD right. I pressed button 3 on the spinner since the spinner has no dpad, and the controller was then recognized. I defined the A/B/X/Y buttons and saved. (I don't think anything else there was relevant unless in mouse mode maybe?). I did the same for the Arkanoid core and saved. After that the spinner works in Arkanoid.
@willoucom thank you so much for making this. BTW, I wasn't able to source a C38S6G5-600B-G24N but Amazon sells E38S6G5-600B-G24N as well as 360P and 100P versions. I don't know how the C and E parts differ other than the E uses an optical sensor, but it's probably worth noting that my encoder does not tolerate less than 5V and my Pro Micro is outputting a bit under 5v, so I used a boost converter to power the encoder.
I agree with you, the Mister is sometimes difficult to understand.
You can also press the F12 key once the controller is recognized, it resets the assignment and you can reconfigure as you wish, without having a key assigned to the right arrow.
I've been working for a few weeks on an alternative version with a joystick and more buttons, which might be more usable for games like eco fighter and forgotten world. It's still very messy, especially on the layout of the buttons and the spinner, but it's promising.