www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/04/12:52:25

Message-ID: <32F80E17.25B1@post.comstar.ru>
Date: Tue, 04 Feb 1997 20:35:35 -0800
From: Dim Zegebart <zager AT post DOT comstar DOT ru>
Reply-To: zager AT post DOT comstar DOT ru
Organization: zager AT post DOT comstar DOT ru
MIME-Version: 1.0
To: DJGPP Mail List <djgpp AT delorie DOT com>
Subject: Allegro and interrupts ?

Hi,
I'm using Allegro and want to install some my functition.
This function had to called each time the
my_keyint() in /allegro/src/keyboard.c triggered by
keyboard interrupt.
There are to ways to do it.
1st is alter Allegro src by adding my code at the end of
my_keyint(). But this way is obviously unwanted.
2st write my own wrapper like this
static int new_my_keyint()
{
  my_keyint();//calling Allegro's function
//and finaly proccess some my code
  ...
  ...
}

Am I right or I missing somethig important ?

-- 
Regards,
Dim Zegebart,
Moscow Russia.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019