1
0
Fork 0

Added keyboard binding to toggle between 2/3D cockpit

This commit is contained in:
j4strngs 2002-04-19 23:47:16 +00:00
parent a16a46af5f
commit 9893da939c
2 changed files with 40 additions and 0 deletions

View file

@ -28,6 +28,11 @@ October 23 2001 John Check, fgpanels@rockfish.net
<path archive="y">Aircraft/c172/Panels/c172-trans-panel.xml</path>
<visibility archive="y">true</visibility>
</panel>
<panel n="1">
<desc>2D Panel</desc>
<path>Aircraft/c172/Panels/c172-vfr-panel.xml</path>
<visibility>true</visibility>
</panel>
<model>
<path archive="y">Aircraft/c172/Models/c172-dpm.xml</path>
@ -82,3 +87,4 @@ October 23 2001 John Check, fgpanels@rockfish.net
</engines>
</PropertyList>

View file

@ -631,6 +631,38 @@ calculated by adding 256 to the GLUT key value in glut.h.
</mod-up>
</key>
<key n="99">
<name>c</name>
<desc>Toggle 3D/2D cockpit</desc>
<binding>
<command>property-swap</command>
<property>/sim/panel[0]/path</property>
<property>/sim/panel[1]/path</property>
</binding>
<binding>
<command>property-assign</command>
<property>/sim/current-view/heading-offset-deg</property>
<value type="double">0</value>
</binding>
<binding>
<command>property-assign</command>
<property>/sim/current-view/pitch-offset-deg</property>
<value type="double">0</value>
</binding>
<binding>
<desc>Load panel.</desc>
<command>panel-load</command>
</binding>
<binding>
<command>property-toggle</command>
<property>/sim/view/internal</property>
</binding>
<binding>
<command>property-toggle</command>
<property>/sim/virtual-cockpit</property>
</binding>
</key>
<key n="109">
<name>m</name>
<desc>Increase warp.</desc>
@ -1116,3 +1148,5 @@ calculated by adding 256 to the GLUT key value in glut.h.