Mail Archives: djgpp/1997/09/30/20:32:20
At 03:24 9/30/1997 -0400, Peter Palotas 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)))
Under bare Linux, no, I don't think so. All you get is the device /dev/mouse
which is symlinked to /dev/ttySn. This dumps all the mouse handling on
*you*: you have to understand mouse protocols, etc. You don't get any driver
at all. One option, however is GRX: It has been ported to Linux, and I think
the mouse works there (haven't checked lately). Or you can use X, but that's
probably *way* too complicated.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -