On Sun, 27 Jan 2008 18:37:19 -0800
Syd&Sandy <[EMAIL PROTECTED]> wrote:

> Does anyone have any objection to binding the mixture " M/m" control to the 
> Condition control , since they both are fuel controls on different engines ?
> Here I have just set this in the controls.nas file ...
> 
> var mixtureAxis = func {
>     var val = cmdarg().getNode("setting").getValue();
>     if(size(arg) > 0) { val = -val; }
>     props.setAll("/controls/engines/engine", "mixture", (1 - val)/2);
>     props.setAll("/controls/engines/engine", "condition", (1 - val)/2);
> }
> 
> -- 

and this in keyboard.xml , of course...

 <key n="77">
  <name>M</name>
  <desc>Mixture leaner.</desc>
  <repeatable type="bool">true</repeatable>
  <binding>
   <command>nasal</command>
   <script>
   controls.adjMixture(-1)
   controls.adjCondition(-1)
   </script>
  </binding>
 </key>

-- 
Syd&Sandy <[EMAIL PROTECTED]>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to