Never mind. I just remembered interpolate. This works perfectly.

Josh

<button n="1">
<desc>Left Brake</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>nasal</command>
<script>interpolate("/controls/gear/brake-left", props.globals.getNode("/controls/gear/brake-left").getValue(), 0, 1, 0.1)</script>
</binding>
<mod-up>
<repeatable type="bool">true</repeatable>
<binding>
<command>nasal</command>
<script>interpolate("/controls/gear/brake-left", props.globals.getNode("/controls/gear/brake-left").getValue(), 0, 0, 0.1)</script>
</binding>
</mod-up>
</button>






_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to