Forums » Linux

Joystick problems

Jan 04, 2004 raybondo link
What is the .joystick file?
Jan 05, 2004 raybondo link
Hmm, interesting. We'll have to take a look at it. Linux is definitely lacking in the joystick department.
Jan 04, 2004 ExaVolt link
I'm doing some tests with a couple of old joypad, but there's a problem: the dead zone. Vendetta Test seems to ignore it.

With libjsw/jscalibrator I had even worse results: the library redefines the max/min value of the axes, but Vendetta seems to ignore .joystick file and always expects a -32767 - +32767 range.

The "Calibrate" button doesn't anything. Modifying config.ini is useless too...

Suggestions?
Jan 04, 2004 Sheean link
With dead zone you mean something like... you move the joystick to the left, the screen goes left... but at the far left the screen moves right again?
Jan 04, 2004 ExaVolt link
No, I mean a zone in the center where movements wouldn't be sent. This is to prevent very sensitive joysticks to send spurious and very disturbing events when they stand still.
Jan 04, 2004 Sheean link
Ah, that sounds interesting as well.. this crappy joystick has the tendency to move to the left.. very annoying.
Jan 04, 2004 roguelazer link
I don't believe it can be done in Linux Vendetta right now. Be glad- I remember when we -didn't- have joystick support at all.
Jan 05, 2004 ExaVolt link
.joystick is produced by jscalibrator and should be read by applications using libjsw: http://wolfpack.twu.net/libjsw/

Dead zone is really fundamental for analog joysticks: without it, joystick support is almost useless, IMO.

It's really trivial to implement too, both using libjsw (works in Windows too) or using /dev/js0. I don't even need a GUI for it, just editing config.ini is enough.
Jan 05, 2004 ExaVolt link
And don't forget that axis ranges may be different from -32767-+32767! You can use the appropriate ioctl to get them: http://www.frogmouth.net/hid-doco/c193.html