Had this idea couple months ago when I got my "8BitDo SN30 pro" controller.
Been working slowly on this since that day.
What's this?
- I fed .ini files, created a json log with controller mappings.
- A second script detects any usb controller and compares with json log.
- If there's a match, it displays every input in your currently connected gamepad, you set a keyboard key, mouse to stick and mouse button.
- Voilá, now you can use a usb controller to control your PC... which means, play WASD games with D-PAD and shit.
- If another app needs to take over the gamepad (like retroarch) you can set a combo to turn off/on the "engine" so the app can use gamepad normally. When you're done, press the combo to control PC with gamepad again.
Been working slowly on this since that day.
What's this?
- I fed .ini files, created a json log with controller mappings.
- A second script detects any usb controller and compares with json log.
- If there's a match, it displays every input in your currently connected gamepad, you set a keyboard key, mouse to stick and mouse button.
- Voilá, now you can use a usb controller to control your PC... which means, play WASD games with D-PAD and shit.
- If another app needs to take over the gamepad (like retroarch) you can set a combo to turn off/on the "engine" so the app can use gamepad normally. When you're done, press the combo to control PC with gamepad again.


