[Y-devel] Logical input devices
Maurice van der Pot griffon26 at kfk4ever.com
Sun Feb 29 16:26:21 GMT 2004
On Sun, Feb 29, 2004 at 04:35:43PM +0100, Rupert Mazzucco wrote:
> > I suppose it would also be useful to check how it is done by X,
>
> I'm not going to look at the source of that thing ever again (I hope),
> but xev reports repeated events for normal keys and no repeating for
> modifiers. I wonder if hardware repeating can be turned off by the
> hardware driver? (By that I mean not our layer 1, but eg the Linux
> input driver.)
Right, that's what I was wondering about.
I found some info here: https://www.pcguide.com/ref/kb/swTypematic-c.html
I think at some time in the future we need to find out if we can
force key repeating to off or to some large enough delay. Our driver
should be able to see the difference between a rapid succession of
keystrokes and hardware generated key repeats.
> I think that belongs in layer 2.
Agreed.
> > Naturally some tools would have to be made to support both the
> > creation of a mapping between a new device's scan codes and its
> > virtual key codes [layer 1], and the mappings between key code sequences
> > and character sequences (keymaps) [layer2].
>
> I think our views on the design have pretty much converged. I inserted
> the [..] to indicate what I was talking about above. We should adopt the
> convention to refer to the real hardware driver as "layer 0".
Ok. Nice to see we agree on all of this =]
Best regards,
Maurice.
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved