Mail Archives: djgpp/1997/12/10/11:01:29
Christian Fleischer wrote:
> Could anyone send me a short routine about how to hook a
> keyboard-routine into the interrupt-chain? I have read diverse faqs and
> downloaded some examples, but they all used some complicated trick or
> long assembler-routines and stuff. But I need a plain easy-to-understand
> source. Please.
Well, if you've got allegro, take a look at its keyboard handler. Or
you could look at mine. There are two versions of it -- the old
standalone version, and a newer (and better) Allegro version.
All the code for mine is in C, so you don't have to wade through
assembly code. Go to the Coding section of my page to get it.
_ _ _ _ ___ ___ -----------"Use the source, Luke!"---------
( \/ ( \/ (__ (__ ) | ~ Scott Scriven (Toy Keeper / XYZZ) |
\ / \ / // // | mailto:scriven AT CS DOT ColoState DOT edu |
/ \ / / //_ //_ | mailto:scriven AT VIS DOT ColoState DOT edu |
(_/\_(_/ (___(___) | http://www.vis.colostate.edu/~scriven/ |
- Raw text -