indent
This commit is contained in:
parent
1062618702
commit
ac0b6d60fd
1 changed files with 93 additions and 93 deletions
|
@ -479,21 +479,21 @@ when button 4 is pressed, and releases them automatically when the user releases
|
|||
button:
|
||||
</P>
|
||||
<TT>
|
||||
<button n="4"><br>
|
||||
<desc>Left brake</desc><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[0]</property><br>
|
||||
<value type="double">1.0</value> <!-- brakes are a toggle so 1.0 represents on --><br>
|
||||
</binding><br>
|
||||
<mod-up> <!-- it's not a parking brake so we need to release it --><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[0]</property><br>
|
||||
<value type="double">0.0</value> <!-- 1.0 is on so 0.0 is off, right? --><br>
|
||||
</binding><br>
|
||||
</mod-up><br>
|
||||
</button><br>
|
||||
<button n="4"><br>
|
||||
<desc>Left brake</desc><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[0]</property><br>
|
||||
<value type="double">1.0</value> <!-- brakes are a toggle so 1.0 represents on --><br>
|
||||
</binding><br>
|
||||
<mod-up> <!-- it's not a parking brake so we need to release it --><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[0]</property><br>
|
||||
<value type="double">0.0</value> <!-- 1.0 is on so 0.0 is off, right? --><br>
|
||||
</binding><br>
|
||||
</mod-up><br>
|
||||
</button><br>
|
||||
</TT>
|
||||
<p>
|
||||
The first binding is straight-forward: when the button is pressed, the
|
||||
|
@ -523,40 +523,40 @@ button 0 is pressed, and releases all three when button 0 is released:
|
|||
|
||||
<TT>
|
||||
<button n="0"><br>
|
||||
<desc>Brakes</desc><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[0]</property><br>
|
||||
<value type="double">1.0</value><br>
|
||||
</binding><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[1]</property><br>
|
||||
<value type="double">1.0</value><br>
|
||||
</binding><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[2]</property><br>
|
||||
<value type="double">1.0</value><br>
|
||||
</binding><br>
|
||||
<mod-up><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[0]</property><br>
|
||||
<value type="double">0.0</value><br>
|
||||
</binding><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[1]</property><br>
|
||||
<value type="double">0.0</value><br>
|
||||
</binding><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[2]</property><br>
|
||||
<value type="double">0.0</value><br>
|
||||
</binding><br>
|
||||
</mod-up><br>
|
||||
</button><br>
|
||||
<desc>Brakes</desc><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[0]</property><br>
|
||||
<value type="double">1.0</value><br>
|
||||
</binding><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[1]</property><br>
|
||||
<value type="double">1.0</value><br>
|
||||
</binding><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[2]</property><br>
|
||||
<value type="double">1.0</value><br>
|
||||
</binding><br>
|
||||
<mod-up><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[0]</property><br>
|
||||
<value type="double">0.0</value><br>
|
||||
</binding><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[1]</property><br>
|
||||
<value type="double">0.0</value><br>
|
||||
</binding><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[2]</property><br>
|
||||
<value type="double">0.0</value><br>
|
||||
</binding><br>
|
||||
</mod-up><br>
|
||||
</button><br>
|
||||
</TT>
|
||||
<p>
|
||||
For people who take pleasure in avoiding XML, here's the command-line
|
||||
|
@ -641,13 +641,13 @@ bindings, as in the following example (the context is
|
|||
/input/keyboard):
|
||||
</P>
|
||||
<TT>
|
||||
<key n="1"><br>
|
||||
<name>Ctrl-A</name><br>
|
||||
<desc>Toggle autopilot altitude lock.</desc><br>
|
||||
<binding><br>
|
||||
<command>property-toggle</command><br>
|
||||
<property>/autopilot/locks/altitude</property><br>
|
||||
</binding><br>
|
||||
<key n="1"><br><br>
|
||||
<name>Ctrl-A</name><br>
|
||||
<desc>Toggle autopilot altitude lock.</desc><br>
|
||||
<binding><br>
|
||||
<command>property-toggle</command><br>
|
||||
<property>/autopilot/locks/altitude</property><br>
|
||||
</binding><br>
|
||||
</key><br>
|
||||
</TT>
|
||||
|
||||
|
@ -677,15 +677,15 @@ may use any combination of nested 'mod-alt', 'mod-ctrl', and
|
|||
</P>
|
||||
<TT>
|
||||
<key n="49"><br>
|
||||
<name>1</name><br>
|
||||
<mod-shift><br>
|
||||
<desc>Look back left</desc><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/sim/view/goal-offset</property><br>
|
||||
<value type="double">135</value><br>
|
||||
</binding><br>
|
||||
</mod-shift><br>
|
||||
<name>1</name><br>
|
||||
<mod-shift><br>
|
||||
<desc>Look back left</desc><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/sim/view/goal-offset</property><br>
|
||||
<value type="double">135</value><br>
|
||||
</binding><br>
|
||||
</mod-shift><br>
|
||||
</key><br>
|
||||
</TT>
|
||||
</P>
|
||||
|
@ -709,20 +709,20 @@ just as with the joystick:
|
|||
</P>
|
||||
<TT>
|
||||
<key n="44"><br>
|
||||
<name>,</name><br>
|
||||
<desc>Left brake</desc><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[0]</property><br>
|
||||
<value type="double">1.0</value><br>
|
||||
</binding><br>
|
||||
<mod-up><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[0]</property><br>
|
||||
<value type="double">0.0</value><br>
|
||||
</binding><br>
|
||||
</mod-up><br>
|
||||
<name>,</name><br>
|
||||
<desc>Left brake</desc><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[0]</property><br>
|
||||
<value type="double">1.0</value><br>
|
||||
</binding><br>
|
||||
<mod-up><br>
|
||||
<binding><br>
|
||||
<command>property-assign</command><br>
|
||||
<property>/controls/brakes[0]</property><br>
|
||||
<value type="double">0.0</value><br>
|
||||
</binding><br>
|
||||
</mod-up><br>
|
||||
</key><br>
|
||||
</TT>
|
||||
<P>
|
||||
|
@ -732,20 +732,20 @@ no <mod-up> tag, so it *does* work like a parking brake.
|
|||
|
||||
<TT>
|
||||
<key n="66"> <br>
|
||||
<name>B</name><br>
|
||||
<desc>Toggle parking brake on or off</desc><br>
|
||||
<binding><br>
|
||||
<command>property-toggle</command><br>
|
||||
<property>/controls/brakes[0]</property><br>
|
||||
</binding><br>
|
||||
<binding><br>
|
||||
<command>property-toggle</command><br>
|
||||
<property>/controls/brakes[1]</property><br>
|
||||
</binding><br>
|
||||
<binding><br>
|
||||
<command>property-toggle</command><br>
|
||||
<property>/controls/brakes[2]</property><br>
|
||||
</binding><br>
|
||||
<name>B</name><br>
|
||||
<desc>Toggle parking brake on or off</desc><br>
|
||||
<binding><br>
|
||||
<command>property-toggle</command><br>
|
||||
<property>/controls/brakes[0]</property><br>
|
||||
</binding><br>
|
||||
<binding><br>
|
||||
<command>property-toggle</command><br>
|
||||
<property>/controls/brakes[1]</property><br>
|
||||
</binding><br>
|
||||
<binding><br>
|
||||
<command>property-toggle</command><br>
|
||||
<property>/controls/brakes[2]</property><br>
|
||||
</binding><br>
|
||||
</key><br>
|
||||
</TT>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue