Bound '+' to zoom in (like 'x').
Bound '-' to zoom out (like 'X'). Bound '=' to return to default zoom.
This commit is contained in:
parent
964f140378
commit
83fa3930f8
1 changed files with 30 additions and 0 deletions
30
keyboard.xml
30
keyboard.xml
|
@ -251,6 +251,16 @@ calculated by adding 256 to the GLUT key value in glut.h.
|
|||
</binding>
|
||||
</key>
|
||||
|
||||
<key n="43">
|
||||
<name>+</name>
|
||||
<desc>zoom in (decrease field of view)</desc>
|
||||
<binding>
|
||||
<command>property-multiply</command>
|
||||
<property>/sim/current-view/field-of-view</property>
|
||||
<factor type="double">0.9523809523809523</factor> <!-- 1 / 1.05 -->
|
||||
</binding>
|
||||
</key>
|
||||
|
||||
<key n="44">
|
||||
<name>,</name>
|
||||
<desc>Left brake</desc>
|
||||
|
@ -268,6 +278,16 @@ calculated by adding 256 to the GLUT key value in glut.h.
|
|||
</mod-up>
|
||||
</key>
|
||||
|
||||
<key n="45">
|
||||
<name>-</name>
|
||||
<desc>zoom out (decrease field of view)</desc>
|
||||
<binding>
|
||||
<command>property-multiply</command>
|
||||
<property>/sim/current-view/field-of-view</property>
|
||||
<factor type="double">1.05</factor>
|
||||
</binding>
|
||||
</key>
|
||||
|
||||
<key n="46">
|
||||
<name>.</name>
|
||||
<desc>Right brake</desc>
|
||||
|
@ -459,6 +479,16 @@ calculated by adding 256 to the GLUT key value in glut.h.
|
|||
</mod-shift>
|
||||
</key>
|
||||
|
||||
<key n="61">
|
||||
<name>=</name>
|
||||
<desc>Reset zoom to default</desc>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/sim/current-view/field-of-view</property>
|
||||
<value type="double">55.0</value>
|
||||
</binding>
|
||||
</key>
|
||||
|
||||
<key n="64">
|
||||
<name>@</name>
|
||||
<desc>Select second engine</desc>
|
||||
|
|
Loading…
Add table
Reference in a new issue