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

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


2008/12/11 Colin Ward <lists@xxxxxxxxxx>:
>
> 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;
> }

Looks perfectly fine to me. The key array should be set to zerro when
the screen is closed.


-- 
Milan Mimica
http://sparklet.sf.net




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