Mail Archives: djgpp/1997/10/03/15:30:37
firewind 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)))
>
> Why are Linux questions being asked here? As already said, no you
> cannot
> hook interrupts.
Likely because like a lot of us that read this group, our stuff _needs_
to work on both systems (In my case as well as cygwin32). In response
to his question, of course you can use the mouse, but the programming
model is much higher level. What you want to do is look at the
documentation for 'gpm'. That is the standard daemon (and user lib)
that deals with the mouse on Linux.
>
> Try comp.os.linux.* and linux.* (if your newsserver doesnt carry
> linux.*,
> whine until they do. :)
Also a good idea. Occurs to me that perhaps someone should look at
maintaining a cross platform coding FAQ. I've seen a few ppl work on
this, but mostly for porting existing DOS apps to Linux....
Cheers,
Jeff.
>
> late\fw
>
> --
> [- firewind -]
> [- email: firewind AT metroid DOT dyn DOT ml DOT org (home), firewind AT aurdev DOT com (work) -]
> [- "You're just jealous because the voices talk to -me-." -]
- Raw text -