delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/09/09:22:37

Date: Wed, 9 Jun 1999 16:20:08 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Lars S. Loevlie" <larssl AT online DOT no>
cc: djgpp AT delorie DOT com
Subject: Re: keyboard handlers?
In-Reply-To: <11841041.928929837083.JavaMail.w-epost@localhost>
Message-ID: <Pine.SUN.3.91.990609161746.2045A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 9 Jun 1999, Lars S. Loevlie wrote:

> Can anyone tell me if I have to make this mysterious "something"
> called a keyboard handler to take keyboard input in any game? Is there
> any other way to increment a variable WHILE checking for keyboard input
> but letting the "show go on" if there is none??

If your game is simple enough, you can use library functions like kbhit() 
and _bios_keybrd() to check for keypresses without waiting.  Check out 
the library reference for these functions.

- Raw text -


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