Mail Archives: djgpp/1998/01/01/18:16:25
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 -