I have tested 2.6.29 and didn't saw my bug again.
I will test 2.6.26 and unpatched version.
On 2.6.26 I was able to reproduce your problem with 0s and I believe that hack worked on kernel 2.6.28-rcsomething.
As I said before I don't see that problem on 2.6.29 even with unpatched version.
Can you try this version?
2.6.30-rc6 used here.
Well i can play Half-Life with it, you just need Nvidia graphics cards or you lost in most cases.
After patching it command:
jscal -u 8,0,1,3,4,5,16,17,2,-1 /dev/input/js0
should do the trick, but if there is still problem with camera movement(up-down is left-right) this command might help:
jscal -u 8,0,1,4,3,5,16,17,2,-1 /dev/input/js0
Just remember to set SDL_JOYSTICK_DEVICE to your js device.
Your patch is really interesting, now it is possilbe to execute it. It works with:
./jscal -u 8,0,1,4,3,2,5,16,17,-1 /dev/input/js0
./jscal -c /dev/input/js0
Would be nice when the calibration settings would be exchanged as well to skip the -c step. I have to run the game like:
Without SDL_JOYSTICK_DEVICE override the games uses the values without jscal it seems. But the game is more or less unplayable for me using a pad.
jscal -s 7,1,0,112,142,5534751,5534751,1,0,112,142,5534751,5534751,1,0,112,142,5534751,5534751,1,0,112,142,5534751,5534751,1,0,112,142,5534751,5534751,1,0,0,0,536870912,536870912,1,0,0,0,536870912,536870912 /dev/input/js0
Could you fix that directly in jscal -u command?
Well done! Now i can use the pad without extra calibration. It is just very hard to play with it. With mouse aiming it is much easier.