| 1 |
fgjs -- a small program for creating a basic FlightGear joystick |
| 2 |
configuration |
| 3 |
|
| 4 |
fgjs requires plib to be installed on your system. If you've |
| 5 |
successfully installed and built FlightGear then you should be |
| 6 |
all set |
| 7 |
|
| 8 |
Build instructions |
| 9 |
At this point, fgjs has only been built and tested under Linux, |
| 10 |
so the makefile is a simple one. cd into the directory in which |
| 11 |
the fgjs source resides and type 'make' and, if you are lucky, |
| 12 |
all will go well. You can e-mail me ([email protected]) any |
| 13 |
changes needed to make it work on other systems. It's quite |
| 14 |
possible that this program will become part of the regular |
| 15 |
FlightGear package so |
| 16 |
|
| 17 |
Running |
| 18 |
Set up your joystick and make sure it works with js_demo from the |
| 19 |
FlightGear distribution. Upon executing fgjs, it will prompt you |
| 20 |
to move the control you wish to use for elevator, ailerons, etc. |
| 21 |
Note that when being prompted for an analog control, you can skip |
| 22 |
the current one by pressing any button and vice-versa when being |
| 23 |
prompted for a button. You may want to do this if for, as an |
| 24 |
example, rudder if you have only one joystick or your joystick |
| 25 |
doesn't have as many analog axes as FlightGear supports. |
| 26 |
|
| 27 |
Once you've run with this configuration, you may wish to tune |
| 28 |
the dead-band a bit (see fgfsrc.js) as the default, 0.02, may |
| 29 |
be too narrow for your particular hardware/taste. |
| 30 |
|
| 31 |
|
| 32 |
And last, but not least, this thing needs a GUI!!!! Hopefully, |
| 33 |
the joystick handling code and interface code are separate |
| 34 |
enough that using that a GUI version could be built using this |
| 35 |
source as a starting point. |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|