From: "Graeme Fenwick" Newsgroups: comp.os.msdos.djgpp References: <3678fb52 DOT 0 AT mercury DOT nildram DOT co DOT uk> <75avcd$9jd$1 AT news1 DOT bu DOT edu> Subject: Re: Allegro keypressed() always returning False Date: Fri, 18 Dec 1998 08:53:53 -0000 Lines: 35 X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 NNTP-Posting-Host: ppp47-38.dial.nildram.co.uk Message-ID: <367a1808.0@mercury.nildram.co.uk> X-Trace: 18 Dec 1998 08:53:28 GMT, ppp47-38.dial.nildram.co.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Scott Lanning wrote in message <75avcd$9jd$1 AT news1 DOT bu DOT edu>... >Graeme Fenwick (gfenwick AT BYESPAMprimex DOT co DOT uk) wrote: >:Allegro's keypressed() [...] seems to be returning false, regardless >: int detect_key(void) { >: if (!keypressed()); <--. >: return NO_KEY; | Umm.... *Bangs head against wall repeatedley*. I'm not normally that stupid. Really. ;-) I guess I was so absorbed with trying to work out what was wrong with the function call/ expression in the brackets that I didn't notice the typo. (Since it wasn't in the original handwritten listing, I can get away with calling it a typo. Well, that's my excuse, and I'm sticking to it :-) ). Seriously... thanks to everyone who spotted that. Sometimes it needs a fresh eye to spot an obvious error that's been overlooked, like that one. While I'm here, see what you think of this "Celestial Fireworks/ Globular Cluster" program :- ftp://ftp.simtel.net/pub/simtelnet/msdos/astronmy/glclu12.zip It's not all mine (being based on a BBC BASIC listing!), and don't expect technical brilliance either- since it was written as a programming exercise, it doesn't exactly show off Allegro's capabilities. In spite of all that, it has a certain appeal (I hope!)- and the source is there to hack around with if you want... ============================================ Graeme Fenwick | gfenwick AT BYESPAMprimex DOT co DOT uk "Please remove BYESPAM filter when replying by mail" -- WILLIAM SHAKESPEARE, Hamlet.