Emulating keyboard with controller actions
-
I thought this would be easy, but I'm having trouble finding anything on this. I'd like to map controller buttons to keyboard keys. Some games that were to be used with a keyboard could be used with a controller. I've already figured out it would likely involve .cfg files in /opt/retropie/configs.
-
There's a great guide made by @mediamogul here:
https://retropie.org.uk/forum/topic/2861/guide-advanced-controller-mappings -
Looks like that could alternately be used. Is there a way /opt/retropie/configs/all/retroarch-joypads/USBGamepad.cfg could be used to emulate keystrokes from a controller?
I haven't been able to find anything, and maybe it's not possible.
-
Both 'joymap' and 'linux joystick mapper', as well as 'xboxdrv' can be used to map keyboard keys to a controller, but there's no way to key-map by altering
/opt/retropie/configs/all/retroarch-joypads/USBGamepad.cfg
. -
@mediamogul
hey thanks for the reply. Would you say any of these methods are easier than the rest, that also allows for customized mapping per emulator, or preferably, per game? -
I've only taken the time to learn xboxdrv because it seems to be the most versatile. Judging by a quick look, 'joymap' seems to be the easiest.
-
I may stick with using your xboxdrv guide for this task since it's already part of Retropie. Getting joymap compiled and configured might prove to be a huge headache.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.