Ubuntu – How to map keyboard keys to joystick buttons using joy2key

gamepadjoystickwine

There isn't much documentation on the game I'm playing using WINE, and it doesn't detect a joystick. I want to use joy2key to map keyboard keys to joystick buttons, but can't figure out exactly how to use its command line interface.

joy2key -dev /dev/input/js0 -terminal

That command shows what to press, but I can't figure out how to map the keys since the instructions are not clear.

Best Answer

You can use antimicro, it is a fork of joy2key and has a GUI, use this PPA for 12.04 to 15.10

sudo add-apt-repository ppa:ryochan7/antimicro
sudo apt-get update
sudo apt-get install antimicro

For 16.04 to 17.10 use this PPA

sudo add-apt-repository ppa:mdeguzis/libregeek
sudo apt-get update
sudo apt-get install antimicro

Source

Screnshot of AntiMicro and key mapping

Related Question