RE: usb keyboard translations

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

 



On Saturday, October 30, 2010 7:32 AM, James Courtier-Dutton wrote:
> When I plug a special purpose keyboard into the USB port, it creates a
> /dev/input/event9
> It then provides input to the terminal as though it was a keyboard.
> Unfortunately, the key mappings are all wrong for this keyboard.
> Is there some way I can do key translations between the the USB
> keyboard and the terminal.
> The problem is I only want the translations to occur to events from
> /dev/input/event9 and not any other keyboard/mouse device that is also
> plugged in.
> Alternatively, is there a way that I can get these events to not even
> reach the terminal, and allow me to write a daemon that would listen
> to /dev/input/event9 and provide a interface to my specific
> application.

Try sending ioctl EVIOCGRAB to the device after you open it in your daemon.

Hartleyÿô.nlj·Ÿ®‰­†+%ŠË±é¥Šwÿº{.nlj·¥Š{±þ)éâ^n‡r¡öë¨è&£ûz¹Þúzf£¢·hšˆ§~†­†Ûÿÿïÿ‘ê_èæ+v‰¨þ)ßø

[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