| delorie.com/archives/browse.cgi | search |
| Xref: | news2.mv.net comp.os.msdos.djgpp:5079 |
| From: | Shawn Hargreaves <slh100 AT york DOT ac DOT uk> |
| 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: | <Pine.SGI.3.91.960617094816.19576A-100000@tower.york.ac.uk> |
| NNTP-Posting-Host: | tower.york.ac.uk |
| Mime-Version: | 1.0 |
| 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/ */
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |