On Monday 15 January 2007 18:50, John Denker wrote: > Comments? Anybody have a better solution?
Of course :-) The better solution already exists and just requires a/c modellers to use it. All joystick config files and keyboard assignments should use nasal control wrappers (see controls.nas) wherever valid, instead of directly setting properties. In other words, rather than forcing the FDM's gear properties directly, bindings should call controls.gearDown etc. If your aircraft wants to do something special when one of these functions is called (as lots will - check for power, check for hydraulic pressure etc) then you can provide a nasal function to control all of that and call it controls.gearDown. This will override the default one automatically, and can do anything you like. Several examples exist, the Lightning for example overrides controls.flapsDown and controls.gearDown. In the case of joystick configs, a fair percentage still do things the broken way which is a real bug. Cheers, AJ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel