From: SerDevian Newsgroups: comp.os.msdos.djgpp Subject: Re: Keyboard. Date: Thu, 12 Jun 1997 15:48:50 -0600 Organization: XYZZ Software Co. Lines: 18 Message-ID: <33A06EC2.41C6@CS.ColoState.edu> References: NNTP-Posting-Host: escher.vis.colostate.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Gary Preston 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. Look at the keyboard handler on my page. It should answer a lot of your questions. Using interrupts in DJGPP isn't nearly as simple as with 16-bit compilers. You've got to do a few extra steps in protected mode. -- Scott Scriven "May farce the with be you." mailto:scriven AT CS DOT ColoState DOT edu mailto:scriven AT VIS DOT ColoState DOT edu http://www.vis.colostate.edu/~scriven/