Xref: news2.mv.net comp.os.msdos.djgpp:5079 From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Little problem with Allegro related with keyboard!! Date: Mon, 17 Jun 1996 10:00:53 +0100 Organization: The University of York, UK Lines: 28 Message-ID: NNTP-Posting-Host: tower.york.ac.uk Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <4porqp$7uv@acebo.sdi.uam.es> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On 13 Jun 1996, Galileo 6 wrote: > I've another little problem with allegro. > > I use at the same time getch() function and the keyb interrupt handler. > In the docs I've read that keyboard_install uses keyb interrupts too. > Question: > Can I still use my old getch() based functions or: > 1 Must I exit allegro's keyb functions... > 2 Must I use Keypressed(). You can't mix the Allegro keyboard handler with any other functions, because it totally takes over the int9 keyboard interrupt and so the BIOS/libc functions will never see any keypresses. So yes, you will have to shut down the Allegro handler before using getch(). Alternatively, I don't think it would be very hard to #define your old code into using the Allegro routines. Whether you need to bother is another question: there is no point using the Allegro handler unless you need to detect multiple simultaneous keypresses... /* * Shawn Hargreaves. Why is 'phonetic' spelt with a ph? * Check out Allegro and FED on http://www.york.ac.uk/~slh100/ */