[Y-devel] Logical input devices

Rupert Mazzucco maz at ap.univie.ac.at
Sun Feb 29 14:52:28 GMT 2004


> > 1) which level should handle repeating of characters when the key
> > has been pressed for some time?
>
> This is somewhat complicated, so we should think carefully about how to
> make this work in a clean, consistent manner.  The general appoach, I
> think, should be that after the initial delay, while a key that triggered
> a "key typed" event is still depressed, repeat "key typed" events will be
> sent until the key is released or some modifier changes.

But that's really useful only for some special keys, space, backspace,
delete, page up/down, cursor keys, maybe tab coming to my mind immediately.
For all others it's rarely what the user wants.  So I don't think it
should be the default behaviour.

Anyway it should be handled on level 2, by feeding synthetic press/release
events into its input queue.

> > 2) I think we should allow any key to work as a modificator (instead
> > of simply Ctrl, Alt, AltGr, Shift, Meta, Super, Hyper). However,
> > current keyboards give output of "a" and "b" in case of the
> > following key sequence: "a down", "b down", "b up", "a up". Should
> > Y's logical character driver generate characters "a","b","a+b" or
> > "a","a+b","b" (I think it should be the latter). Does it matter?
>
> We may want to make the behavior for this sort of thing configurable.

Layer 2 would be handled by a module that applies "rules" (see my post
about that).  Whether a key is a modifier or not depends on the rules.
The standard rules would maybe treat the standard modifiers as modifiers,
but they could be replaced.  In any case, applications should be able
to register for "unprocessed events", in which case layer 2 would simply
pass through what it gets from layer 1. (Or it could have two output
queues, so that unprocessed events are always output.  The next layer could
then decide fom where to get events and connect the other queue to nirvana.)

Regards,
Rupert




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved