1
0
Fork 0

Also reset the bindings for 3 and 9 in keyboard mode

Copy the default bindings from `fgdata/keyboard.xml` to the keyboard mode
bindings for 3 and 9 so they behave consistently with PgUp/PgDn.
This commit is contained in:
Jan Hudec 2020-02-15 20:23:01 +01:00
parent 95425e23a1
commit 28249598d1

View file

@ -1509,8 +1509,7 @@
</condition>
<command>nasal</command>
<script>
setprop("controls/engines/engine[0]/throttle", getprop("controls/engines/engine[0]/throttle") - 0.01);
setprop("controls/engines/engine[1]/throttle", getprop("controls/engines/engine[0]/throttle") - 0.01); # Not a typo, always use engine[0] as a reference
controls.incThrottle(-0.01, -1.0);
</script>
</binding>
</key>
@ -1637,8 +1636,7 @@
</condition>
<command>nasal</command>
<script>
setprop("controls/engines/engine[0]/throttle", getprop("controls/engines/engine[0]/throttle") + 0.01);
setprop("controls/engines/engine[1]/throttle", getprop("controls/engines/engine[0]/throttle") + 0.01); # Not a typo, always use engine[0] as a reference
controls.incThrottle(0.01, 1.0);
</script>
</binding>
</key>