Mail Archives: djgpp/1999/10/07/16:57:53
On Thu, 7 Oct 1999, Roland Moritz wrote:
> allegro_init();
> install_timer();
> do
> {
> c = getch();
> rest(1000);
> while (kbhit())
> c = getch();
> }
> while (c != 27);
> }
>
> It basically does the same that happens in a game loop, but doesn't work
> (When I press a button for a longer time, I hear a loud beeping, which
> means, that the kb-buffer is full, right?)
That might be because of the rest(1000) call. How much time does it
wait? (I don't know much about ALlegro.) If it waits enough time, the
keyboard buffer could become full.
- Raw text -