Re: Reading keys

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

 



On Mon, 2010-05-10 at 19:01 +0300, Niko Rosvall wrote:
> Hi All,
> 
> I'm new to Linux kernel and actually subscribed to this list today.
> So, i'm not even sure is this the right place to ask this, but:
> 
> I want to make a kernel module which detects a keypress and then
> disables it. E.g someone presses F1 and my module would just "eat" it.

Interesting usecase, is it for a kiosk? And why don't you disable the
keys in X or your application?

> Any examples and/or hints where to start? Some nice, small peace of code
> would be very very nice.

You could hack input_event() in drivers/input/input.c

Thanks,
 Christoph


--
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