Mail Archives: djgpp/1997/06/15/13:18:47
You wrote:
> Hi, I've written a pong game ( yes I know old but sweet ) the reason
>is I'm trying to get used to using djgpp, now I've used getch() to read
>the keys which is ok ish but I'd rather use the keyboard routines I've
>used in my 16 bit games (see below ). If there is a better way I'd like
>to know eventually I will try and prot my keyboard handler but for now
>any help on the below routine is greatly appreciated. I've also included
>my attempt of porting it. [deleted]
There are routines for this built into libc.a. You can:
- Use getkey() or getxkey() which return scan codes; or
- Use _bios_keybrd() which is a lower level interface to INT 0x16.
Read about these in the docs, libc.inf, under their names.
Good luck!
Nate Eldredge
eldredge AT ap DOT net
- Raw text -