Re: Re (hello?): [PATCH] Let keyboard notifiers modify key codes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 09, 2009 at 11:23:41PM +0100, Samuel Thibault wrote:
> Alan Cox, le Fri 09 Jan 2009 22:01:44 +0000, a écrit :
> > > > Surely that is just a new keymap ?
> > > 
> > > No. That would mean a lot of keymapSSS. Doing it the keymap way
> > 
> > Why - its an  algorithmic question about how to edit them - remember you
> > can edit keymaps in programs at runtime and live.
> 
> Right. I'm still afraid by that: we'd need to know how to remap the
> various keycodes (amiga, atari, i386, mc, sun).

Err - just use EVIOCSKEYCODE to swap the keycodes around,  this works
in terms of the evdev keycodes.  I use it in a small program to swap
around a bunch of keys.

A bit more of a challange would be listening to evdev,  and when
detecting the 'swap' keycode,  doing the reload with the actual swaps.

I'm not sure w/o reading the code if the kernel will allow this to be
shared between the tty and evdev on the same vt,  but then one could
run a controller program talking through a pty and direct to the keyboard.

DF
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux