Dec 15, 2020

Gamepad/Joystick in Wine (Ubuntu 20.04)

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:

    source joystick1.cal

Start by checking that you controller works as expected in Wine by running:

    wine control

This will bring up the Wine Control Panel.



Lauch your game

    wine mygame.exe 

and locate the settings to map the controller.



No comments:

Post a Comment