[patch] add keymap data to make random laptop vendor keys work

Lennart Poettering mzuny at 0pointer.de
Mon Jun 4 08:13:28 PDT 2007


On Mon, 04.06.07 16:33, Lennart Poettering (mzuny at 0pointer.de) wrote:

> keys-to-name.h: keys.txt Makefile
>                 awk 'BEGIN{ print "const char* const
>                 key_names[KEY_MAX] = { "} { print "[" $$1 "] = \"" $$1
>                 "\"," } END{print "};"}' < $< > $@
> </snip>
> 
> Indenting borked. Get the original stuff from:
> 
> http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/Makefile.am?rev=19&root=keyfuzz&view=auto
> 
> You can probably omit the keys-to-name part, as you only want to
> translate keycodes to names and not vice versa.

Bah. That must read "... you only want to translate names to keycodes ..."

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4


More information about the hal mailing list