delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/06/21:15:29

From: "Steven S. Falls" <broadview AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Keybord Read Problem
Date: Mon, 06 Apr 1998 18:02:11 -0700
Organization: EarthLink Network, Inc.
Lines: 14
Message-ID: <35297B13.4E5CD995@earthlink.net>
Reply-To: broadview AT earthlink DOT net
NNTP-Posting-Host: 38.28.60.16
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

    Does anyone know how to make the keybord read without a wait or an
error. For example, The commen code to deal with haveing only a keybord
read would be...
    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. Does anyone know
how to deal with this problem?
            Thnaks,
               -Ardy
        http://www.addr.com/~ardy/


- Raw text -


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