[PATCH] kdrive: Bump evdev maxKeycode
Adam Jackson
ajax at nwnk.net
Mon Mar 22 08:44:49 PDT 2010
On Mon, 2010-03-22 at 12:15 +0600, Mikhail Gusarov wrote:
> There are keycodes > 193 in evdev, e.g. KEY_WIMAX which is 246 .
Ack in theory, but:
> --- a/hw/kdrive/linux/evdev.c
> +++ b/hw/kdrive/linux/evdev.c
> @@ -362,7 +362,7 @@ readMapping (KdKeyboardInfo *ki)
> return;
>
> ki->minScanCode = 0;
> - ki->maxScanCode = 193;
> + ki->maxScanCode = 255;
> }
>
> static void
Should be ... = 247. Keyboard codes are from 8 to 255 in X, so once you
factor in that offset...
- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100322/9650e6af/attachment.pgp>
More information about the xorg-devel
mailing list