Re: [AD] Key repeats and handling screen re-opens |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: "Coordination of admins/developers of the game programming library Allegro" <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] Key repeats and handling screen re-opens
- From: "Milan Mimica" <milan.mimica@xxxxxxxxxx>
- Date: Thu, 11 Dec 2008 09:54:36 +0200
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