Howto:Reassign keyboard bindings: Difference between revisions

Jump to navigation Jump to search
m
assignment → binding
m (Johan G moved page Howto:Reassign keyboard keys to Howto:Reassign keyboard bindings: Probably more kommonly used wording)
m (assignment → binding)
Line 5: Line 5:
In general, the list of keyboard commands is stored in the property tree and is loaded at startup or when the menu option "Debug -> Reload input" is selected. The main list of commands is available in {{Git link|gitorious|fg/fgdata|master|keyboard.xml|pre=$FG_ROOT/}}, but each aircraft can add/change its own bindings through its -set.xml file, and additional [[config file]]s can do the same.
In general, the list of keyboard commands is stored in the property tree and is loaded at startup or when the menu option "Debug -> Reload input" is selected. The main list of commands is available in {{Git link|gitorious|fg/fgdata|master|keyboard.xml|pre=$FG_ROOT/}}, but each aircraft can add/change its own bindings through its -set.xml file, and additional [[config file]]s can do the same.


== Adding or modifying key assignments ==
== Adding or modifying key bindings ==
Keyboard bindings are usually fairly simple. They consist of a <tt>&lt;key&gt;</tt> node (with a corresponding index), optional <tt>&lt;name&gt;</tt> and <tt>&lt;desc&gt;</tt> nodes, and one or more <tt>&lt;binding&gt;</tt>s. A very simple example is the default for {{key press|Ctrl|V}}:
Keyboard bindings are usually fairly simple. They consist of a <tt>&lt;key&gt;</tt> node (with a corresponding index), optional <tt>&lt;name&gt;</tt> and <tt>&lt;desc&gt;</tt> nodes, and one or more <tt>&lt;binding&gt;</tt>s. A very simple example is the default for {{key press|Ctrl|V}}:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
  <key n="22">
  <key n="22">

Navigation menu