www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/11/18:35:28

Message-ID: <3416B514.79A0@lightspeed.bc.ca>
Date: Wed, 10 Sep 1997 07:56:20 -0700
From: "Anne Compton, Andrew/David Gasson" <brainstorm AT lightspeed DOT bc DOT ca>
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Key Detection in Allegro
References: <3416103D DOT 4537 AT voyageur DOT ca>
NNTP-Posting-Host: light77.lightspeed.bc.ca
Lines: 26
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

J.E. wrote:

>  I tried using kbhit() to check
> the key buffer, but it would still just sit there waiting with getch().
> I am assuming that kbhit() is working fine, but I need an alternative to
> getch().  

	J.E., since you're using Allegro, why not use keypressed()and see if
that helps?  This is what the documentation has to say about it:

	Returns TRUE if there are keypresses waiting in the input buffer. 	This
is equivalent to the libc kbhit() function.

> 
> Also, I've been having some problems linking Allegro.  About 50% of the
> time it links fine, but sometimes Rhide says this:
> 
> no errors
> The Error was: PERMISSION DENIED  (EACCESS)
> 
> Then, it creates a file with a 000 extension that runs when renamed to
> an exe.  

	Weird!  Actually, I had the same problem when linking Degui.  Doug
Eleveld and I never figured out why.  The problem seemed to go away when
I reinstalled the newest version.  Go figure :-)

- Raw text -


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