Thread (8 messages) 8 messages, 3 authors, 2007-09-24

Re: detecting when keys are being pressed on a keyboard

flat view

From: Jiri Kosina <hidden>
Date: 2007-09-21 12:47:16

On Fri, 21 Sep 2007, Oliver Neukum wrote:
I got the strange case of a keyboard going into autosuspend while a key 
was being pressed. The key release never arrived and I had to unplug the 
keyboard to get the key unstuck. Is there a clean way to learn from 
hid-core.c if a keyboard has keys pressed?
Hi Oliver,

HID doesn't keep any permanent state by itself. If you want to know 
whether a given key is currently pressed or not, you'd have to inspect the 
bitfields inside input_dev*, I am afraid.

-- 
Jiri Kosina
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help