From: Manni Heumann Newsgroups: comp.os.msdos.djgpp Subject: Re: while loops and for loops Date: 2 Oct 2001 08:56:44 GMT Lines: 29 Message-ID: <9pbvgc$hivl8$1@ID-54749.news.dfncis.de> References: <3BB8D340 DOT 8626FF2F AT earthlink DOT net> <6480-Tue02Oct2001102532+0300-eliz AT is DOT elta DOT co DOT il> NNTP-Posting-Host: computer-name.uni-bielefeld.de (129.70.100.231) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 1002013004 18448040 129.70.100.231 (16 1428 [54749]) User-Agent: Xnews/4.06.22 X-Face: "c)Go+A65AgR*9'!B)BMLM$kYg6HDG!_g'DAsj*ALo%=kp{X&abs&t\G0F~*r?VRj#|4=6)M.RJPnD]Ql:B<-7A^EAYFpDpZRMoJy?80^3B3b AT DXb%MTyOD.*4wu&Xt6o*+6`r5E To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: >> From: "b279" Newsgroups: comp.os.msdos.djgpp >> Date: Mon, 1 Oct 2001 21:32:41 -0400 >> >> is it because of the install_keyboard() function? > > Probably. Can someon who knows Allegro please tell? > > There should be some equivalent function in Allegro to do the > same. Look at the Allegro docs, and you will probably find it. > From the Allegro Docs: > int install_keyboard(); > > Installs the Allegro keyboard interrupt handler. You must call this > before using any of the keyboard input routines. Once you have > set up the Allegro handler, you can no longer use operating > system calls or C library functions to access the keyboard. > int keypressed(); > > Returns TRUE if there are keypresses waiting in the input buffer. > This is quivalent to the libc kbhit() function.