FlightGear: Kalibrasi Joystick

From OnnoWiki
Revision as of 15:29, 6 June 2011 by Onnowpurbo (talk | contribs) (New page: Sumber: http://www.mail-archive.com/flightgear-users@flightgear.org/msg10501.html Steven Wayne wrote: > Can someone tell me how to get Flightgear to use the ~/.joystick > file produced b...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sumber: http://www.mail-archive.com/flightgear-users@flightgear.org/msg10501.html


Steven Wayne wrote: > Can someone tell me how to get Flightgear to use the ~/.joystick > file produced by jscalibrator.

You don't. Joystick calibration happens at the kernel level, FlightGear just reads the values out of the device and assumes they are correct.

I don't know the jscalibrator tool, nor the .joystick file. The way the "official" command line jscal tool works is to print out the calibration as a runnable command.

So you do "jscal -c /dev/js0" to calibrate your stick.

Then "jscal -p /dev/js0 > calibrate-stick.sh" to create a shell script that you can use to re-do the calibration in the future.

Then, after the next reboot or whenever, "sh calibrate-stick.sh" to reproduce the calibration.

I think some distributions actually do the saving of joystick settings for you on shutdown/startup, although Fedora 4 is not one of them (I just checked). It may be that some desktop environments have similar functionality. But this is the "low level" mechanism underneath them all.

Andy


Referensi

Pranala Menarik