1 Key code / scan code / key symbol mapping database
2 ==================================================
4 This module provides a database that maps between different
5 key code / scan code / key symbol sets:
27 The contents of this package are dual licensed under the terms of:
29 - GNU General Public License (version 2 or later)
30 - 3-clause BSD License
32 The output files generated by keymap-gen may be distributed & used under
33 the terms of either of the above licenses.
38 The following output formats are possible
42 An array mapping between key code sets values
44 Indexes in the array are values from the source code set.
45 Entries in the array are values from the target code set
50 An array listing all values in a key code set
52 Indexes in the array are simply a numeric counter
53 Entries in the array are values from the key code set
55 The size of the array matches the total number of entries in
61 An array mapping between key code sets values and names
63 Indexes in the array are values from the source code set
64 Entries in the array are names from the target code set
69 An array listing all names in a key code set
71 Indexes in the array are simply a numeric counter
72 Entries in the array are values from the key code set
74 The size of the array matches the total number of entries in
81 The tool is capable of generating data tables for the following
82 programming languages / environments
85 - GLib2 (standard C, but with GLib2 data types)
93 Map values from AT Set 1 to USB HID, generating tables for the
94 C programming language
96 $ keymap-gen --lang stdc code-map data/keymaps.csv atset1 usb
98 Generate a tables of names for Linux key codes, OS-X key codes,
99 in python - equivalent array indexes map between the two sets.
100 A variable name override is used
102 $ keymap-gen --varname linux_keycodes --lang stdc \
103 code-table data/keymaps.csv linux
104 $ keymap-gen --varname osx_keycodes --lang stdc \
105 code-table data/keymaps.csv os-x
107 Generate a mapping from XOrg XWin values to Win32 names
109 $ keymap-gen --lang perl name-map data/keymaps.csv xorgxwin win32
111 Generate a table of names for Linux key codes in Perl
113 $ keymap-gen --lang perl name-table data/keymaps.csv linux