www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/12/18/17:06:18

From: hacker1 AT rci DOT ripco DOT com (Isaac Kohn)
Subject: Help with keyboard polling
To: djgpp AT sun DOT soe DOT clarkson DOT edu (mailing list)
Date: Mon, 18 Dec 1995 15:35:51 -0600 (CST)

Greetings,
All of the keyboard i/o routines in DJGPP (getkey(), getxkey(), getchar(),
etc.) wait for a keypress when they are called.  How do I query in order to
retuen a key if one has been pressed, or 0 if not?  In other words, I'm
looking for a function Solution() that would return NULL or something if no
key has been pressed, or the val. of the key otherwise.  TIA,

Isaac K.
hacker1 AT rci DOT ripco DOT com
ivk AT hfnet DOT sinai DOT org

- Raw text -


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