1
0
Fork 0

There used to be a hard-coded F6 binding in input.cxx. Replace it

with a tiny bit of Nasal.
This commit is contained in:
andy 2004-04-05 18:55:33 +00:00
parent db4056f70d
commit 15401619e5

View file

@ -907,6 +907,16 @@ calculated by adding 256 to the GLUT key value in glut.h.
<key n="262"> <key n="262">
<name>F6</name> <name>F6</name>
<binding>
<desc>Toggle Autopilot Heading Mode</desc>
<command>nasal</command>
<script>
prop = "/autopilot/locks/heading";
curr = getprop(prop);
if(curr == "true-heading-hold") { setprop(prop, ""); }
else { setprop(prop, "true-heading-hold"); }
</script>
</binding>
<mod-shift> <mod-shift>
<binding> <binding>
<desc>Scroll panel up</desc> <desc>Scroll panel up</desc>