Howto:Reassign keyboard bindings: Difference between revisions

Jump to navigation Jump to search
m
→‎Adding or modifying key assignments: Heading: or instead of slash
(→‎Finding keycodes: + Subsection headings; +Using the property browser)
m (→‎Adding or modifying key assignments: Heading: or instead of slash)
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/modifying key assignments ==
== Adding or modifying key assignments ==
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">

Navigation menu