Re: Fw: Re: [AD] messy allegro 5.0 stuff

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


In reply to Shawn Hargreaves <shargreaves@xxxxxxxxxx>:

[unicode vs scancode]
>Plus provide two helper functions for the common case where you
>only care about a single value:

This isn't such a common case; consider that when you are checking for
Unicode values, you nearly always *also* want to check for scancodes,
since you need to interpret navigational controls (up, down, left,
right), function keys, etc.

I can't see any clean way of handling the `check for a Unicode value,
but return a scancode if you can't convert the keypress to Unicode' way
of doing things unless the whole thing is returned at once. And I think
a single 32-bit int beats anything with structures, pointers or
whatever.

Bye for now,
-- 
Laurence Withers, lwithers@xxxxxxxxxx
                http://www.lwithers.demon.co.uk/

Attachment: signature.asc
Description: PGP signature



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