Re: [AD] Key repeats and handling screen re-opens

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


On 2008-12-11, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> On 2008-12-11, Colin Ward <lists@xxxxxxxxxx> wrote:
> > 
> > I had to put a hack in the Amiga's screen/window handling code so that when
> > a screen or window was closed, it set all keys to 0.  ie.
> > 
> > for (index = KEY_A; index < __allegro_KEY_MAX; ++index)
> > {
> >    key[index] = 0;
> > }
> > 
> > The questions are:
> > 
> > 1) Is the code above the correct way of resetting all keys?
> 
> No. key[] is read only for the user.

Disregard that. I didn't realise you meant within Allegro.

Peter





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