[Y-devel] Key mappings
Jay Sprenkle cupycake_jay at yahoo.com
Thu Feb 26 00:50:38 GMT 2004
--- y-devel-request at www.y-windows.org wrote:
> From: Mark Thomas <mark at www.y-windows.org>
> Subject: Re: [Y-devel] Key mappings
>
> For example, if I type a " character on my keyboard,
> the following
> happens:
>
> (I press the left shift key) RAW LSHIFT DOWN
> (I press the 2 key) RAW 2 DOWN
> CHAR " PRESS
> RAW 2 UP
> (I release the left shift key) RAW LSHIFT UP
>
Why do you need both the key down and key up
events? Are you planning on having behaviour
triggered on either event? All the GUI's
I'm familiar with have a single event which
is delivered on key press or key release
(depending on which GUI it is).
Almost every package I'm familiar with
does a virtual keyboard mapping:
A constant name VK_F1 = 'someone pressed what
passes for the F1 key on the keyboard'.
It seems pretty logical to do it that way.
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
https://antispam.yahoo.com/tools
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved