Re: Writing a keyboard driver

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

 



On Mon, 27 Aug 2007, Adrian McMenamin wrote:

> The problem I have is that when I press a key, that key is continually 
> output - eg pressing 'r' causes 'r' to echo on the screen more-or-less 
> for ever more.

The HID keyboard should send HID report on every keypress indicating the 
usage code of the key and it's values (usually 1 when it is pressed, 0 
when it is released). Then you'd get automatically corrent behavior, as 
you'd once issupe input_event(...., 1) for the keypress and 
input_event(...., 0) for the release.

If you are concerned about autorepeat, you probably should not set EV_REP 
bit for the corresponding input device.

-- 
Jiri Kosina

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux