delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/11/14:43:30

Date: Tue, 11 Oct 1994 09:05:38 -0400 (EDT)
From: Edwin Phillips <flaregun AT strauss DOT udel DOT edu>
To: Kimberley Burchett <OKRA AT max DOT tiac DOT net>,
DJGPP Mailing List <djgpp AT sun DOT soe DOT clarkson DOT edu>
Subject: Re: keboard messups clarification

On Mon, 10 Oct 1994, Edwin Phillips wrote:

> On Mon, 10 Oct 1994, Kimberley Burchett wrote:
> 
> > 
> >   Peter Jones pointed out to me that I listed the code that worked as the 
> > code that didn't work, and the code that didn't work as the code that 
> > did.  In other words, the one with getch() works.  Sorry about that. :)
> > 							Kim
> > 
> 
> 	The code with only the kbhit() doesn't work because once you 
> press a key the first time, kbhit() returns 1 until you read it.  Which 
> means the rotation never stops.
> 
> 	Ed
> 

	Ooopse.... no it doesn't, I double checked the code you sent and 
the kbhit() only version will stop at the first keypress.  Don't I feel 
dumb...

	Ed

/****************************************************************************/
/* Ed Phillips  flaregun AT strauss DOT udel DOT edu      University of Delaware       */
/* Jr Systems Programmer  (302) 831-6082    IT/Network and Systems Services */
/****************************************************************************/


- Raw text -


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