delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/17/16:14:47

Message-ID: <003601be29f3$2f4511c0$8df9c6c3@johans-dator>
From: "Johan Henriksson" <johan DOT he AT telia DOT com>
To: <djgpp AT delorie DOT com>
Subject: Re: Allegro keypressed() always returning False
Date: Thu, 17 Dec 1998 20:26:30 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

from Johan Henriksson
Primary: johan DOT he AT telia DOT com
Second: jhe75 AT hotmail DOT com     Third: johan_he AT yahoo DOT com
HTTP://come.to/jhewok
-----Original Message-----
From: Scott Lanning <slanning AT buphy DOT bu DOT edu>
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com <djgpp AT delorie DOT com>
Date: Thursday, December 17, 1998 5:58 PM
Subject: Re: Allegro keypressed() always returning False


>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;      |
>                            |
>     if(CODPIECE_IS_AFIRE);
>     return NO_KEY;


IIRC most compilers use the return(...)-statement so it would be a good
habit to do it in DJGPP too

>
>     would do the same.
>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019