www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/07/04:26:35

Date: Tue, 7 Apr 1998 11:25:44 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Steven S. Falls" <broadview AT earthlink DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Keybord Read Problem
In-Reply-To: <35297B13.4E5CD995@earthlink.net>
Message-ID: <Pine.SUN.3.91.980407112524.14139H-100000@is>
MIME-Version: 1.0

On Mon, 6 Apr 1998, Steven S. Falls wrote:

>     unsigned userinput;
>         if(kbhit()) userinput=getkey() //or getch()
> 
>     but the problem is that it does not get the first key you press. You
> often get a delay or you have to press the key twice.

This must be due to some bug in your code.  As written, the above
snippet should not miss any keypresses.

Perhaps if you post a short program which can be compiled and run by
other people, and describe the sequence of events whereby it loses
keys, others could help you find and correct the problem(s).

- Raw text -


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