Date: Tue, 24 Feb 2009 23:37:42 +0100 From: Patrick =?ISO-8859-15?Q?Lamaizi=E8re?= <patfbsd@davenulle.org> To: carnage <carnagewashere@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Determining scancodes for obscure keyboard to modify keymap Message-ID: <20090224233742.6601b7d5@baby-jane.lamaiziere.net> In-Reply-To: <93e00050902241328x6867e315vd7c3b63c46d685c0@mail.gmail.com> References: <93e00050902241328x6867e315vd7c3b63c46d685c0@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Le Tue, 24 Feb 2009 14:28:54 -0700, carnage <carnagewashere@gmail.com>: > I'm wondering how to go about determining the scancodes for keys on > keypress. > > I am looking to remap an apple usb keyboard (a1048). It has F13-16, 3 > volume control keys and an eject key but no scroll lock, num lock, > pause/break, etc. I'm wondering how I would go about changing some > of these not so useful keys into useful keys. > > The keymap files in /usr/share/syscons/keymaps seem easy enough to > modify but I am unsure of how to determine what the scancodes > associated with the actual keys on keypress are. I asked for this some times ago without any reply. Finally I added some printf in the kbd driver. I don't remember exactly where, I think it was in the function genkbd_keyaction() in kdb.c (something like printf("%i - ", keycode) That's ugly... Is there a better way to get the scancode?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090224233742.6601b7d5>