* Curtis R Anderson -- Wednesday 23 November 2005 23:45:
> A look at the fgfs-base-0.9.9.tar.bz2 file shows no joystick.xml file
That's intentional. It only loaded all listed drivers into memory and
kept them there. Now all drivers under $FG_ROOT/Input/Joysticks/ are
loaded automatically, the desired remain, and the rest is removed from
memory again. But you can still override fgfs' decision:
(A) Either preload a *named* joystick from your preferences.xml:
<PropertyList>
<input>
<joysticks>
<js-named n="0" include="foo.xml"/>
</joysticks>
...
This joystick is then used if its <name> matches your hardware.
It has precedence over an already existing driver in
$FG_ROOT/Input/Joysticks/ with the same name.
(B) or preload a driver into the final slot:
<PropertyList>
<input>
<joysticks>
<js n="0" include="foo.xml"/>
</joysticks>
This won't be overwritten by FlightGear, no matter if it has a
name, or has a name that doesn't match the hardware.
Method (A) is preferable.
m.
PS: in the future the system might be changed, so that we don't
load all drivers only to drop most of them again. This would
re-introduce joysticks.xml. :-)
_______________________________________________
Flightgear-users mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-users
2f585eeea02e2c79d7b1d8c4963bae2d