delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/01/18:16:25

From: Tom Seddon <tom AT sunholme DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: keyboard handlers
Date: Thu, 1 Jan 1998 20:27:56 +0000
Distribution: world
Message-ID: <9oY+qFAMx$q0Iw15@sunholme.demon.co.uk>
References: <68729j$fj9$1 AT newsfep4 DOT sprintmail DOT com>
NNTP-Posting-Host: sunholme.demon.co.uk
MIME-Version: 1.0
Lines: 24
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <68729j$fj9$1 AT newsfep4 DOT sprintmail DOT com>, Ionicis <"An
family<ionicis"@geocities.com> writes
>I'm pretty new at game programming in general, so I have MANY
>newbie-like questions.  So far, I've been using int 16h's functions to
>get my keyboard input.  Then I heard that I should write my own keyboard
>handler instead of the BIOS functions.  I read the article on keyboards
>in the PCGPE, and it says something about an interrupt 9 being
>generated.  What the hell does this mean, and how can I check for an
>interrupt 9?  I suppose I need to learn more about how a computer's
>insides work, so is there I web site(s) where I can learn so?

You can download Allegro, an excellent graphics-sound-and-the-kitchen-
sink library which also features keyboard-handling routines. In your
program you can install the Allegro keyboard handler, and then use it in
two ways: with a buffer-type system, a la int 16h, or merely by checking
whether a certain key is pressed or released. (With this second method
you can detect multiple keypresses.) You don't have to know any of the
intimate details, although as always it wouldn't hurt :-)

You can download Allegro from:

http://www.talula.demon.co.uk/

--Tom

- Raw text -


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