From: "Raul Carolus" Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro-accelerating Date: Sat, 13 Nov 1999 18:22:41 +0100 Organization: T-Online Lines: 22 Message-ID: <80k6pn$eni$1@news03.btx.dtag.de> References: <80k5uc$40u3 AT imsp212 DOT netvigator DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news03.btx.dtag.de 942513783 15090 320030026865-0001 991113 17:23:03 X-Complaints-To: abuse AT t-online DOT de X-Sender: 320030026865-0001 AT t-dialin DOT net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com finding schrieb in im Newsbeitrag: 80k5uc$40u3 AT imsp212 DOT netvigator DOT com... > I would like to increase a value of a variable when the key is pressing. > decrease the value while the key is not pressing. > > Could anyone tell me how to do it in Allegro. > thx! > > be sure to call install_keyboard() before using: while(keypressed()) { variable++; } Simple enough.