Install joy2key by entering the following commands in the terminal:
sudo apt update sudo apt install joy2key
Description:
Translate joystick movements into equivalent keystrokes
joy2key allows one to choose keyboard events for joystick axes and buttons, so that a joystick or gamepad can be used with an application that doesn't have native joystick support.
Homepage: http://joy2key.sourceforge.net
Version: 1.6.3-2
Section: universe/x11