Hi Torsten! That's a really great feature as it makes it much, much easier to build own flightcontrolls! Unfortunately this feature isn't supported for win-users- could that be possible soon? Regards HHS still in work: http://www.hoerbird.net/galerie.html But already done: http://www..hoerbird.net/reisen.html
----- Ursprüngliche Mail ---- Von: Torsten Dreyer <tors...@t3r.de> An: flightgear-devel@lists.sourceforge.net Gesendet: Samstag, den 22. August 2009, 16:07:25 Uhr Betreff: [Flightgear-devel] New feature for generic input devices Hi the generic/event driven input device now has the new feature to "grab" the device. Setting this flag to 'true' stops the associated driver from distributing the events to other listeners. Do explain what this means, here is an example: Get yourself a USB mouse and attach it as a second mouse to your computer. You now have two mice controlling your desktop simultaneously. The same for FlightGear: both mice do exactly the same thing - quite useless. Now add a file to your data/Input/Event directory with this content: <PropertyList> <name>Logitech Logitech USB Optical Mouse</name> <debug-events type="bool">false</debug-events> <grab type="bool">true</grab> <event> <desc>Y-Axis</desc> <name>rel-y-translate</name> <binding> <command>property-adjust</command> <property>/controls/flight/elevator</property> <factor type="double">-.002</factor> <min type="double">-1.0</min> <max type="double">1.0</max> <wrap type="bool">false</wrap> </binding> </event> <event> <desc>X-Axis</desc> <name>rel-x-translate</name> <binding> <command>property-adjust</command> <property>/controls/flight/aileron</property> <factor type="double">.002</factor> <min type="double">-1.0</min> <max type="double">1.0</max> <wrap type="bool">false</wrap> </binding> </event> </PropertyList> (You might need to adapt the <name> entry to the name of you mouse) This tells FlightGear to use the specified mouse exclusively and to be the only application receiving these events from the USB mouse. You now have one mouse acting as your regular mouse, doing whatever you expect it to do. Your USB mouse acts as a yoke. Two mice - two different usages. Perfect for the 5 minute yoke: http://flightgear.org/forums/viewtopic.php?f=3&t=1956 Torsten Restriction: Only on linux and FlightGear CVS configured with --with-eventinput ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel