Mail Archives: djgpp/1997/10/02/10:49:17
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 -