First post, by DJGrenola
Rank
Newbie
Hi there,
I just spliced an xbox gamepad onto a USB cable so I could play Wing Commander in dosbox on Linux with the analogue stick, and it works very well. Unfortunately (and I think this is a peculiarity of the pad itself) the y-axis is inverted. I thought about the best way to solve the problem, and decided that patching dosbox would probably be the most straightforward route.
The attached unified GNU diff patch (against 0.63) adds a [joystick] section to dosbox.conf with the two attributes inverty1=<bool> and inverty2=<bool> for the two joysticks. It is GPLed.
So cd to the dosbox tarball unpack directory and apply with
cat /path/to/dosbox-063-invertaxis-patch.txt | patch -p1
enjoy,
DJ