- add controls.wingsDown() wrapper
- carrier-bindings.xml: remove trailing spaces & add some blanks
This commit is contained in:
parent
acec163fc1
commit
5df46f3e5c
2 changed files with 37 additions and 18 deletions
|
@ -17,6 +17,7 @@
|
|||
</binding>
|
||||
</mod-up>
|
||||
</key>
|
||||
|
||||
<!-- map keys for launch-bar -->
|
||||
<key n="76">
|
||||
<name>L</name>
|
||||
|
@ -34,6 +35,7 @@
|
|||
</binding>
|
||||
</mod-up>
|
||||
</key>
|
||||
|
||||
<!-- map keys for arrester hook -->
|
||||
<key n="79">
|
||||
<name>O</name>
|
||||
|
@ -44,6 +46,7 @@
|
|||
<value type="double">1.0</value>
|
||||
</binding>
|
||||
</key>
|
||||
|
||||
<key n="111">
|
||||
<name>o</name>
|
||||
<desc>Hook Up.</desc>
|
||||
|
@ -53,23 +56,35 @@
|
|||
<value type="double">0.0</value>
|
||||
</binding>
|
||||
</key>
|
||||
|
||||
<!-- map keys for wing fold -->
|
||||
<key n="70">
|
||||
<name>F</name>
|
||||
<desc>Wing Fold Down.</desc>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>controls/flight/wing-fold</property>
|
||||
<value type="double">1.0</value>
|
||||
<command>nasal</command>
|
||||
<script>controls.wingsDown(1)</script>
|
||||
</binding>
|
||||
<mod-up>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>controls.wingsDown(0)</script>
|
||||
</binding>
|
||||
</mod-up>
|
||||
</key>
|
||||
|
||||
<key n="102">
|
||||
<name>f</name>
|
||||
<desc>Wing Fold Up.</desc>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>controls/flight/wing-fold</property>
|
||||
<value type="double">0.0</value>
|
||||
</binding>
|
||||
<command>nasal</command>
|
||||
<script>controls.wingsDown(-1)</script>
|
||||
</binding>
|
||||
<mod-up>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>controls.wingsDown(0)</script>
|
||||
</binding>
|
||||
</mod-up>
|
||||
</key>
|
||||
</PropertyList>
|
||||
|
|
|
@ -98,6 +98,10 @@ var wingSweep = func(step) {
|
|||
setprop("/controls/flight/wing-sweep", val > 1 ? 1 : val < 0 ? 0 : val);
|
||||
}
|
||||
|
||||
var wingsDown = func(v) {
|
||||
if(v) setprop("/controls/flight/wing-fold", v > 0);
|
||||
}
|
||||
|
||||
var stepSpoilers = func(step) {
|
||||
if(props.globals.getNode("/sim/spoilers") != nil) {
|
||||
stepProps("/controls/flight/spoilers", "/sim/spoilers", step);
|
||||
|
|
Loading…
Reference in a new issue