(Re: [AD] Shawn's thoughts about new Allegro) readkey return val |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
>Also, al_readkey() can return an object instead of a number.
>Something like:
>
>struct KEY {
> int ascii;
> int scancode;
> long time_stamp;
>};
IMHO it is not a good idea for a function as used as ofthen as readkey
to return a complex type.
I think it would be better to just return the scancode of the key,
and create a function al_acii_from_scancode(SCANCODE)
(just using the current al_key_shifts value.
(as you all can see I'm trying to get used to the prefixing already ;-)
--
Martijn Versteegh