The plib maintainer, Steve Baker, has agreed to let me mess with plib
so that the joystick code can report the device's id string, as in
"Logitech Inc. WingMan Extreme Digital 3D". Once that's working, it
might be worth doing some restructuring of the input code.
Essentially, right now we have something like
<input>
<joysticks>
<js>
...
</js>
<js>
...
</js>
</joysticks>
</input>
etc. Under Linux, these will be connected to /dev/js0, /dev/js1, and
so on. This creates a couple of problems:
1. Linux does not guarantee initialization order, so /dev/js0 might be
your yoke today and your pedals tomorrow.
2. The system cannot adjust itself for different devices.
Once the plib js library can report the device name, we can use
something like this:
<input>
<joysticks>
<js>
<id>Logitech Inc. WingMan Extreme Digital 3D</id>
...
</js>
<js>
<id>CH PRODUCTS CH PRO PEDALS USB </id>
...
</js>
<js>
<id>Logitech Inc. WingMan RumblePad</id>
...
</js>
<js>
...
</js>
</joysticks>
</input>
When no ID is specified, the branch provides default settings for
unrecognized controllers. This way, it won't matter *what* order
devices are initialized in, or what device you happen to have plugged
in today.
I can write the Linux support on the plib side, but we'll need
volunteers to do the FreeBSD and Windows stuff (and possibly Mac). If
any developers on the FlightGear side knows what they're doing here,
I'd appreciate their participation.
All the best,
David
--
David Megginson
[EMAIL PROTECTED]
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel