13,208
edits
(→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 | == Adding or modifying key assignments == | ||
Keyboard bindings are usually fairly simple. They consist of a <tt><key></tt> node (with a corresponding index), optional <tt><name></tt> and <tt><desc></tt> nodes, and one or more <tt><binding></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><key></tt> node (with a corresponding index), optional <tt><name></tt> and <tt><desc></tt> nodes, and one or more <tt><binding></tt>s. A very simple example is the default for {{key press|Ctrl|V}}: | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> |