delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/02/10:49:17

Date: Thu, 2 Oct 1997 14:58:49 +0200 (MET DST)
From: Jan Hubicka <hubicka AT ta DOT jcu DOT cz>
To: Steven John Cook <csscook AT mailbox DOT uq DOT edu DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: Linux portability Q!
In-Reply-To: <60sjh1$sd7$1@nargun.cc.uq.edu.au>
Message-ID: <Pine.LNX.3.95.971002145802.31149C-100000@tabor.ta.jcu.cz>
MIME-Version: 1.0

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!

- Raw text -


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