xerpi / fakemote

A Wii cIOS module that fakes Wiimotes from the input of USB game controllers
GNU General Public License v2.0
167 stars 16 forks source link

Suggestion: usb Gamepads with PID=0x0006 support #4

Open ciroH opened 2 years ago

ciroH commented 2 years ago

would it be possible to add support to generic usb gamepads with a PID 0006? a lot of usb gamepads use a similar controller.

Here's the source code of a driver, but it's for windows: https://github.com/alessandroasm/generic-usb-gamepad-vibration-driver

I also attach a .ini config file from nintendont in case it helps as a reference controller.zip

Invictaz commented 2 years ago

Please define "a lot" of usb gamepads? Do you have examples?

Invictaz commented 2 years ago

Please extract the USB device descriptors using https://www.thesycon.de/eng/usb_descriptordumper.shtml

ciroH commented 2 years ago

I dont have access to a Windows machine at the moment, so i obtained the device info and descriptor's dump using multiple tools on a linux-based OS: DragonRise-usb-gamepad-dump.txt

Invictaz commented 2 years ago

Your device is bInterfaceClass 3 Human Interface Device

Which should work if there are controller configs coming.

We have to wait for Xerpi to see what to do next.

xerpi commented 2 years ago

Can you try this .app? FAKEMOTE.zip Code is here: https://github.com/xerpi/fakemote/blob/wip/usb_driver_generic_usb_pid_0006/source/usb_driver_generic_usb_pid_0006.c#L39 The buttons will be messed up, but at least we will see if it gets recognized and "does something".

Invictaz commented 2 years ago

@ciroH

ciroH commented 2 years ago

I'm sorry for the delay!! i wasn't receiving GitHub notifications on my e-mail client. I'll check the .app today as soon as possible and come back with feedback

ciroH commented 2 years ago

I followed the Installation instructions, used: