I created custom keyboard.xml, also I modified the package file: /usr/share/games/flightgear/keyboard.xml.
As the aircraft may rewrite the keys I tried to modify also:
/usr/share/games/flightgear/Aircraft/c172p/c172p-keyboard.xml
I'm trying to add:
<key n="97">
<name>a</name>
<desc>Move rudder left</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>property-adjust</command>
<property>/controls/flight/rudder</property>
<step type="double">-0.05</step>
</binding>
</key>
<key n="100">
<name>d</name>
<desc>Move rudder right</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>property-adjust</command>
<property>/controls/flight/rudder</property>
<step type="double">0.05</step>
</binding>
</key>
The above works well for other airplanes, but not for c172p. Even the above keys are not in collision with c172p build-in keys, my mapping gets overwritten by airplane itself...
Any ideas how to change binding for c172p?
I'm on latest flightgear 2018. I went through lot of forums already, but they seems to be outdated.