Just a heads up on the xboxdrv quest,
To clarify I have been running Oolite 1.77. I had been 'flying by mouse' but wanted to use an xbox controller (I had some stashed away)
I am a Linux user and as with any other not averse to a bit of CLI if required. Though I am far from proficient.
First I added the PPA from grumble -
Code: Select all
sudo add-apt-repository ppa:grumbel/ppa
sudo apt-get update
sudo apt-get install xboxdrv
I have an original xbox one controller which I modded by changing it's existing plug to a standard PC usb plug. -
http://www.ocmodshop.com/how-to-use-an- ... c-gamepad/
The above link I found useful only for the wiring as I completely removed the original plug rather than kept it dual purpose as in the how to.
So plug in the controller open up Terminal and type -
The above fires up the software to use the controller. The --silent on the end stops verbose code appearing in terminal everytime you do something with the controller.
Open up an Oolite session and go to the Game Options menu. Go to Joystick configuration and you can indeed configure the axis for flight control and buttons for weapons and sundry other controls.
This is great but, if like mine, the stick axis are a bit worn/loose then your flight path will drift and twitch when you have the sticks at rest/centered. A bit of a bummer!
Also the triggers and Dpad may not work and these could be useful to expand your control range. The following should be entered in terminal instead of the original line of code. -
Code: Select all
sudo xboxdrv --deadzone 5000 --dpad-as-button --trigger-as-button --silent
xboxdrv - Activates the software link
--deadzone 5000 - Sets an area on the sticks where they wont do anything. The figure can be increased if you still drift/twitch.
--dpad-as-button - The four points of the dpad can be assigned a task in oolite Joystick configuration page.
--trigger-as-button - Allows these to be assigned a task as above.
--silent - as per the original code.
This is the simplest, for me, cure for my drifting axis mainly. There all the above can be made into a config file with all the above plus full keymapping if you have the nouse - I don't.
Once created you would use the following command
Code: Select all
sudo xboxdrv --silent --config [FILE]
Where [FILE] is the path to your created config file.
I hope the above helps anyone needing to, primarily, sort out the deadzone. xboxdrv will also work with other types of Joysticks.
YMMV
BBD