Mouse not detected

Hi.

I’m making an adapter for the original Guncon to USB. Using an arduino.

The arduino is programed to work as a USB HID Absolute mouse.

It’s working in windows and on a ubuntu inside a VM.

But I can’t get it to work in Lakka.

dmesg output

usb 4-2: new full-speed USB device number 2 using uhci_hcd

input: Arduino LLC Arduino Leonardo as /devices/pci0000:00/0000:00:1a.1/usb4/4-2/4-2:1.2/0003:2341:8036.0003/input/input18

hid-generic 0003:2341:8036.0003: input,hidraw2: USB HID v1.01 Mouse [Arduino LLC Arduino Leonardo] on usb-0000:00:1a.1-2/input2

input: Arduino LLC Arduino Leonardo as /devices/pci0000:00/0000:00:1a.1/usb4/4-2/4-2:1.3/0003:2341:8036.0004/input/input19

hid-generic 0003:2341:8036.0004: input,hidraw3: USB HID v1.01 Mouse [Arduino LLC Arduino Leonardo] on usb-0000:00:1a.1-2/input3

Retroarch detects no udev device.

Need to edit any file to make it work?

You need to find and change pid/vid to a mouse one so it knows what config to use. Nice project btw :+1:

Got it working on another linux box. There was something bad in the HID descriptor. Running retroarch with crt res. I will share the code later and also will look if it’s possible to make a autoconfig for it.