Date: Thu, 2 Oct 1997 14:58:49 +0200 (MET DST) From: Jan Hubicka To: Steven John Cook cc: djgpp AT delorie DOT com Subject: Re: Linux portability Q! In-Reply-To: <60sjh1$sd7$1@nargun.cc.uq.edu.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 1 Oct 1997, Steven John Cook wrote: > Peter Palotas (blizzar AT hem1 DOT passagen DOT se) wrote: > : Under Linux, Is it possible to have a a function called every time a > : mouse-event occurs, like the int 33h callback function, or have a function > : called at a constant rate, like hooking the timerinterrupt? > : (I don't need any *details* about how to do this, mainly if it is possible, > : and roughly how this could be done (if it could (which it should))) > : > I linux you cannot mess with the interrupts outside of the kernel. Well, but this case should be implemented quite easily - for constant rate you should use alarm interrupt and for mouse you should use asynchronous IO from mouse device, so this is no problem. Honza > > -Steve > ------------------------------------------------------------------------------ Have you browsed my www pages? Look at: http://www.paru.cas.cz/~hubicka Koules-the game for Svgalib,X11 and OS/2, Xonix-the game for X11 czech documentation for linux index, original 2D computer art and funny 100 years old photos and articles are there!