cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/03/15:30:37

From: "D. Jeff Dionne" <jeff AT maribor DOT pfnet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Linux portability Q!
Date: Wed, 01 Oct 1997 15:05:50 -0400
Organization: DKG / Dionne & Associates
Lines: 41
Message-ID: <34329F0E.3F69EAE8@maribor.pfnet.com>
References: <3 DOT 0 DOT 16 DOT 19970930152449 DOT 2c2feada AT hem1 DOT passagen DOT se> <60sd36$foq AT dfw-ixnews8 DOT ix DOT netcom DOT com>
NNTP-Posting-Host: 207.219.73.2
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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