From: Forsberg Sakari Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro-accelerating Date: 13 Nov 1999 18:01:54 GMT Organization: Tampere University of Technology Lines: 18 Message-ID: <80k92i$88q$1@baker.cc.tut.fi> References: <80k5uc$40u3 AT imsp212 DOT netvigator DOT com> <80k6pn$eni$1 AT news03 DOT btx DOT dtag DOT de> NNTP-Posting-Host: lehtori.cc.tut.fi X-Trace: baker.cc.tut.fi 942516114 8474 130.230.10.20 (13 Nov 1999 18:01:54 GMT) NNTP-Posting-Date: 13 Nov 1999 18:01:54 GMT User-Agent: tin/pre-1.4-981225 ("Volcane") (UNIX) (OSF1/V4.0 (alpha)) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Raul Carolus wrote: > be sure to call install_keyboard() before using: > while(keypressed()) > { > variable++; > } I think if you're programming a real-time game, then you should use if ( keypressed() ) variable++; because otherwise your game stops when you are pressing a key ** Sakari Forsberg zacu AT cc DOT tut DOT fi ** ** Information: finger zacu AT assari DOT cc DOT tut DOT fi **