NicoHood / HID

Bring enhanced HID functions to your Arduino!
http://www.nicohood.de
MIT License
2.33k stars 401 forks source link

Can this be used to make a converter of HID-Gamepad to HID-Keyboard? #347

Closed eduo closed 2 years ago

eduo commented 2 years ago

Hi

I just discovered this and I think this could work for what I want, but wanted to confirm since it would be my first Arduino project if so.

A hobby of mine and my children is building el cheapo joysticks from kits widely available. These are later used to play arcade or console emulators, which in turn makes them interested in the history of videogames and helps them be interested in programming and DIY.

While sharing their hobby with friends they sometimes face situations where the end device doesn't support HID-Gamepads but it does support HID-Keyboard profiles.

So I thought perhaps I could use something like this to build a "translator" that can take up to 4 HID-Gamepad USB inputs and translate to HID-Keyboard presses (predefined to a layout like this.

This way these joysticks could be used to work in other devices (like iPads, which support mame and emulatores but not HID-Gamepad).

NicoHood commented 2 years ago

You'd need an usb host shield and read the gamepad and write as a keyboard. I dont know how complex this is, but if the usb host shield can recognize it, it SHOULD be fairly easy. For PC there are easy software solutions.