nanogui: nano-X Keyboard Problem (Repeat, Key-Up Event)
Subject:
Re: [nanogui] nano-X Keyboard Problem (Repeat, Key-Up Event)
From:
"Greg Haerr" ####@####.####
Date:
12 May 2006 15:25:53 +0100
Message-Id: <1d0001c675cf$f3f04e10$6401a8c0@winXP>
: So, what I want is:
: - add the GR_EVENT_TYPE_KEY_UP to the TTYKBD driver
You'll never get that, since the kernel doesn't tell you when the
key goes back up; this is why we wrote the SCAN driver in
the first place.
: OR
: - suppress the repeating GR_EVENT_TYPE_KEY_DOWN events from the SCANKBD
: driver.
Likely you need to replace the scan code header file, this is
included in the driver: drivers/kbd_scan.c. Grab a PC manual and
determine what the code is for repeat, I think its just to
0x80 bytes in a row, indicating two keypresses without an upcode,
or vice versa. If you kernel scancode configuration is too out
of whack with what is in the include .h file for the scancodes, this
might be an issue...putting debug code in the driver is my
first suggestion.
Regards,
Greg