mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 02:52:36 +03:00
[console] Add keymap generator
Inspired by LILO's keytab-lilo.pl, genkeymap.pl uses "loadkeys -b" to obtain a Linux keyboard map, and generates a file keymap_xx.c in hci/keymap. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
29
src/hci/keymap/keymap_pt.c
Normal file
29
src/hci/keymap/keymap_pt.c
Normal file
@@ -0,0 +1,29 @@
|
||||
/** @file
|
||||
*
|
||||
* "pt" keyboard mapping
|
||||
*
|
||||
* This file is automatically generated; do not edit
|
||||
*
|
||||
*/
|
||||
|
||||
FILE_LICENCE ( PUBLIC_DOMAIN );
|
||||
|
||||
#include <ipxe/keymap.h>
|
||||
|
||||
/** "pt" keyboard mapping */
|
||||
struct key_mapping pt_mapping[] __keymap = {
|
||||
{ 0x1c, 0x1d }, /* 0x1c => 0x1d */
|
||||
{ 0x1d, 0x1b }, /* 0x1d => 0x1b */
|
||||
{ 0x22, 0x5e }, /* '"' => '^' */
|
||||
{ 0x27, 0x7e }, /* '\'' => '~' */
|
||||
{ 0x2f, 0x3b }, /* '/' => ';' */
|
||||
{ 0x3f, 0x3a }, /* '?' => ':' */
|
||||
{ 0x5b, 0x27 }, /* '[' => '\'' */
|
||||
{ 0x5c, 0x5d }, /* '\\' => ']' */
|
||||
{ 0x5d, 0x5b }, /* ']' => '[' */
|
||||
{ 0x60, 0x27 }, /* '`' => '\'' */
|
||||
{ 0x7b, 0x60 }, /* '{' => '`' */
|
||||
{ 0x7c, 0x7d }, /* '|' => '}' */
|
||||
{ 0x7d, 0x7b }, /* '}' => '{' */
|
||||
{ 0x7e, 0x22 }, /* '~' => '"' */
|
||||
};
|
||||
Reference in New Issue
Block a user