Configuring a Joystick or Joypad for Wine in Ubuntu 20.04 is pretty simple.
Start by installing the joystick tools:
sudo apt-get install joystick
If you have an analog controller it may need calibration:
jscal -c /dev/input/js0
Save calibration to file:
jscal -p /dev/input/js0 > joystick1.cal
To load calibration later just source the file:
Start by checking that you controller works as expected in Wine by running:
This will bring up the Wine Control Panel.
Lauch your game
and locate the settings to map the controller.