Re: [AD] Shawn's thoughts about new Allegro

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


On 2001-12-14, Bob <ohannessian@xxxxxxxxxx> wrote:
> 
> Perhaps something like:
> 
> do {
>    /* Game loop */
>    al_next_input_tick();
> 
>    if (al_key_pressed(KEY_ALT) && al_key_pressed(KEY_SPACE)) {
>       do_stuff();
>    }
> }

AFAICS, that's essentially Shawn's polling-only idea.  It would (in
some ways) be nice that the key[] array is _only_ updated at
particular points.  (Ever tried to teach a scripting language what
"volatile" means?)



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