delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/30/20:32:20

Date: Tue, 30 Sep 1997 17:30:53 -0700 (PDT)
Message-Id: <199710010030.RAA23258@adit.ap.net>
Mime-Version: 1.0
To: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Linux portability Q!

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 -


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