Install qjoypad and xautomation and download leanstick.
In qjoypad set the positive and negative axes for the hat switch to the keyboard views (H=Left; K=Right; M=Back; J=Up). Save as a new config, so you don't have to mess with it again.
For leanstick, create a ".leanstick" file in your home directory and paste and edit the following before running the script:
Code: Select all
axis 4 neg press delay 1000 : xte 'mousemove 960 540'
axis 4 pos press delay 1000 : xte 'mousemove 960 540'
axis 5 neg press delay 1000 : xte 'mousemove 960 540'
axis 5 pos press delay 1000 : xte 'mousemove 960 540'
Run leanstick.pl
What you can do now: Use your mouse to look around in the cockpit, use the hat switch to look in any direction, and recenter the view when the switch is released.
Edit: Added "delay 1000". Without it, game fps drops a lot.