Main Menu

Linux Controller Setup

Started by wayens, April 26, 2016, 01:40:13 PM

Previous topic - Next topic


One of our Linux playtesters was helpful enough in detailing how to setup a controller for Linux play. Playtester used a PS3 controller but should be applicable to others.


Download xboxdrv, a gamepad driver for linux. Here its website if you'd like to learn more about it.

To install xboxdrv, run the following command in Terminal.
sudo apt-get install xboxdrv

Create a new document and paste in the configuration settings (included below). Add .xboxdrv to the end of the name you chose for the document. Keep in mind Linux's case sensitivty when naming files and running commands. Note that this config file simply maps controller buttons to keyboard keys, so you can easily modify it yourself with a little time.

Move your config file to a location of your choosing, and note the path; you will need to enter the path when you run the command to start your controller. Many xboxdrv users keep their config files in the examples folder in the xboxdrv folder.

Run the command below using the chosen path. Leave the window open as it runs, your controller should now be live. You can even test it by typing into a text file.

#sudo xboxdrv --detach-kernel-driver --silent --config /usr/share/doc/xboxdrv/examples/CSoTDirectional.xboxdrv

Fire up your game, and test everything out.

When you are ready to stop using the controller, hit Ctrl+C in the Terminal window.


Configuration settings:


# Basic Playstation 3 Controller Config File for Cornerstone, The Song of Tyrim using Analog Stick for Movement

# Move this config file into the xboxdrv examples folder, or wherever you choose to save your examples.
# Use the following command in Terminal to run the controller with this config file (change path as necessary).
#sudo xboxdrv --detach-kernel-driver --silent --config /usr/share/doc/xboxdrv/examples/csotanalog.xboxdrv


X1 = ABS_X
Y1 = ABS_Y
x2^dead:4000 = REL_X:750:-1
y2^dead:4000 = REL_Y:750:-1


dl = KEY_C
dr = KEY_T
du = KEY_M
dd = KEY_I

tl = KEY_C
tr = KEY_TAB
x = KEY_E
y = KEY_Z
back = KEY_C
guide = void
start = KEY_ESC

# EOF #