Context: FlightGear 2019.1.1 as provided through the Debian packaging system, on Debian testing.
So after some research I went into /usr/share/games/flightgear/keyboard.xml (where Debian places the FlightGear data) and modified the key binding for the 'Left' keypad key from this:
- Code: Select all
<key n="52">
<name>4</name>
...
<mod-shift>
<desc>Look left</desc>
<binding>
<command>property-assign</command>
<property>/sim/current-view/goal-heading-offset-deg</property>
<property>/sim/view/config/left-direction-deg</property>
</binding>
</mod-shift>
...
</key>
to this:
- Code: Select all
<key n="52">
<name>4</name>
...
<mod-shift>
<desc>Look left</desc>
<binding>
<command>property-assign</command>
<property>/sim/current-view/goal-pitch-offset-deg</property>
<property>/orientation/roll-deg</property>
</binding>
</mod-shift>
...
</key>
What I was expecting is that the 'Look left' action would be replaced by the 'Adjust view pitch' action, since this is what the involved properties pertain to.
What I got was the 'Look left' action, same as before.
In order to verify that this keyboard.xml file was indeed read, I made a syntax error in it and started FG again. Sure enough it complained about the syntax error, confirming it was read.
Next I searched for other XML files in the FlightGear data files to see if they had overriding key bindings for this, but I could not find one.
I also tried different planes to see if it was model specific, but both the F16 and C172 showed the same behaviour. Also neither of these planes appear to have overriding key bindings for this key.
So I'm left to wonder if/where these key bindings are cached, and/or why this is not updated from the XML file? Am I missing some step to effectuate this?
Can you provide me some pointers where to look for clues, e.g., how to investigate what the current bindings are (although that seems obvious), where these come from (not so obvious perhaps), what logs could be valuable to inspect?
TL;DR: changing key binding in keyboard.xml, but the change is not effectuated. What did I miss?