Re: [AD] key scan codes have changed?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Sun, 2005-05-01 at 17:05 +0200, Daniel Schlyder wrote:
> Elias Pschernig:
> >> the two Alt keys produce different results when combined with other keys.
> >> 
> >> one of the Alt keys  produces a readkey() event.
> 
> > Which one? The key labelled VK_RMENU here is always reported together
> > with the control flag (by windows), the key VK_LMENU is the left alt
> > key and reported as only the alt flag. I don't think there's much
> > point special casing this and "fixing" what windows reports..
> 
> Not entirely sure this is relevant to your discussion, but just in case...
> 
> Some of us actually have Alt keys that are supposed to behave differently.
> The right Alt key on my Norwegian keyboard is actually called "Alt Ground"
> and is used to output printable characters.
> 

Yes, so best to not have too many special cases, and just use what
Windows reports (I assume, with a Norwegian keyboard, using Control +
Left-Alt would do the same as just using Right-Alt alone in Windows.. so
that would explain why it is reported like that).

-- 
Elias Pschernig





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/