From: Vojtech P. <vo...@su...> - 2002-10-08 08:55:38
|
On Tue, Oct 08, 2002 at 06:38:23PM +1000, Brad Hards wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tue, 8 Oct 2002 18:36, Vojtech Pavlik wrote: > > Are you by any chance trying to do this on a USB keyboard? Bad luck, USB > > keyboards don't have scancode->keycode tables. (at least not yet) > Of course I'm trying it on a USB keyboard! Grrr. Thought I was reading the > code all wrong.... Because the USB keyboard tells us which keys it has, we don't need a scancode->keycode table. (We have something like that in the HID driver, because the HID codes aren't the same as Linux keycodes, but the table is fixed.) For PS/2 you unfortunately cannot have a fixed table, and thus EVIOCSKEYCODE is needed. Btw, the classic KD* scancode loading ioctls should now be supported as well. -- Vojtech Pavlik SuSE Labs |