Mail Archives: djgpp/2001/06/10/14:19:16
> From: "Vermin" <ratspl AT hotmail DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Sun, 10 Jun 2001 19:22:38 +0200
>
> I'm currently trying to make my first game in djgpp, and for that I need a
> keyboard handler. I've programmed one before, but that was in real mode
> ASM... so I was wondering if anybody has got any source code or tutorials
> that I can use!?!
First, take a look at section 18.9 of the FAQ: it should explain some
of the basics of writing hardware interrupt handlers with DJGPP. That
section also mentions several tutorials which could help you.
In addition, every DJGPP program installs a keyboard handler right in
its startup code (to support Ctrl-C). So you could look at the file
exceptn.S that is part of djlsr203.zip archive, and see a working
example of a keyboard handler.
- Raw text -