Here is an example code. It should supposedly not move the pilot of a C172p at all in terms of x and y axes (because the original view of the pilot is x = -.21 and y = ). However, if you add this to your keyboard.xml and hit F1, the pilot is pushed down on his seat!
- Code: Select all
<key n="257">
<name>F1</name>
<desc>Move Pilot to Left</desc>
<repeatable>false</repeatable>
<binding>
<command>property-assign</command>
<property>/sim/current-view/x-offset-m</property>
<value type="double">-.21</value>
</binding>
<binding>
<command>property-assign</command>
<property>/sim/current-view/y-offset-m</property>
<step type="double">0.23</step>
</binding>
<binding>
<command>property-assign</command>
<property>/sim/current-view/field-of-view</property>
<value type="double">66</value>
</binding>
</key>
I would be grateful if one could tell me what I'm doing wrong here.